petsc-3.11.4 2019-09-28
Report Typos and Errors

DMGlobalToLocal

update local vectors from global vector

Synopsis

#include "petscdm.h"          
#include "petscdmlabel.h"     
#include "petscds.h"     
PetscErrorCode DMGlobalToLocal(DM dm,Vec g,InsertMode mode,Vec l)
Neighbor-wise Collective on DM

Input Parameters

dm - the DM object
g - the global vector
mode - INSERT_VALUES or ADD_VALUES
l - the local vector

Notes

The communication involved in this update can be overlapped with computation by using DMGlobalToLocalBegin() and DMGlobalToLocalEnd().

See Also

DMCoarsen(), DMDestroy(), DMView(), DMCreateGlobalVector(), DMCreateInterpolation(), DMGlobalToLocalEnd(), DMLocalToGlobalBegin(), DMLocalToGlobal(), DMLocalToGlobalBegin(), DMLocalToGlobalEnd()

Level

beginner

Location

src/dm/interface/dm.c

Examples

src/dm/impls/stag/examples/tutorials/ex1.c.html
src/dm/impls/stag/examples/tutorials/ex3.c.html
src/dm/impls/stag/examples/tutorials/ex4.c.html

Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages