DALocalToGlobal

Maps values from the local patch back to the global vector. The ghost points are discarded.

Synopsis

int DALocalToGlobal(DA da,Vec l, InsertMode mode,Vec g)
Not Collective

Input Parameters

da - the distributed array context
l - the local values
mode - one of INSERT_VALUES or ADD_VALUES

Output Parameter

g -the global vector

Note

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, local-to-global

See Also

DAGlobalToLocalBegin(), 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/ex7.c
src/snes/examples/tutorials/ex8.c
src/snes/examples/tutorials/ex9.c

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