DACreateGlobalVector

Creates a parallel PETSc vector that may be used with the DAXXX routines.

Synopsis

int DACreateGlobalVector(DA da,Vec* g)
Collective on DA

Input Parameter

da -the distributed array

Output Parameter

g -the distributed global vector

Note

This is a regular PETSc vector that should be destroyed witha call to VecDestroy().

Keywords

distributed array, get, global, distributed, vector

See Also

DACreateLocalVector(), VecDuplicate(), VecDuplicateVecs(),
DACreate1d(), DACreate2d(), DACreate3d(), DAGlobalToLocalBegin(), DAGlobalToLocalEnd(), DALocalToGlobal()

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/dadist.c
IS and DA Index
Table of Contents