begins updating global vectors from local vectors
#include "petscdm.h" #include "petscdmlabel.h" #include "petscds.h" PetscErrorCode DMLocalToGlobalBegin(DM dm, Vec l, InsertMode mode, Vec g)
dm - the
l - the local vector
mode - if
INSERT_VALUESthen no parallel communication is used, if
ADD_VALUESthen all ghost points from the same base point accumulate into that base point.
g - the global vector
ADD_VALUES case you normally would zero the receiving vector before beginning this operation.
INSERT_VALUES is not supported for
DMDA, in that case simply compute the values directly into a global vector instead of a local one.
DMLocalToGlobalEnd() to complete the communication process.
DMLocalToGlobal() is a short form of
DMLocalToGlobalHookAdd() may be used to provide additional operations that are performed during the update process.
DMLocalToGlobalBegin_Composite in src/dm/impls/composite/pack.c
DMLocalToGlobalBegin_DA in src/dm/impls/da/dagtol.c
DMLocalToGlobalBegin_Moab in src/dm/impls/moab/dmmbvec.cxx
DMLocalToGlobalBegin_Network in src/dm/impls/network/network.c
DMLocalToGlobalBegin_Redundant in src/dm/impls/redundant/dmredundant.c
DMLocalToGlobalBegin_Stag in src/dm/impls/stag/stag.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages