DAGlobalToLocalBegin

Maps values from the global vector to the local patch; the ghost points are included. Must be followed by DAGlobalToLocalEnd() to complete the exchange.

Synopsis

int DAGlobalToLocalBegin(DA da,Vec g, InsertMode mode,Vec l)
Collective on DA

Input Parameters

da - the distributed array context
g - the global vector
mode - one of INSERT_VALUES or ADD_VALUES

Output Parameter

l -the local values

Notes

The global and local vectors used here need not be the same as thoseobtained from DACreateGlobalVector() and DACreateLocalVector(), BUT theymust have the same parallel data layout; they could, for example, beobtained with VecDuplicate() from the DA originating vectors.

Keywords

distributed array, global to local, begin

See Also

DAGlobalToLocalEnd(), DALocalToGlobal(), DACreate2d()

Examples

src/sles/examples/tutorials/ex14f.F
src/sles/examples/tutorials/ex14.c
src/snes/examples/tutorials/ex5f.F
src/snes/examples/tutorials/ex5f90.F
src/snes/examples/tutorials/ex5.c
src/snes/examples/tutorials/ex3.c
src/snes/examples/tutorials/ex7.c
src/snes/examples/tutorials/ex8.c
src/snes/examples/tutorials/ex9.c

Location: src/da/src/dagtol.c
IS and DA Index
Table of Contents