DACreateGlobalVector

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

Synopsis

#include "petscda.h"   
int DACreateGlobalVector(DA da,Vec* g)
Collective on DA

Input Parameter

da -the distributed array

Output Parameter

g -the distributed global vector

Note

The output parameter, g, is a regular PETSc vector that should be destroyed with a call to VecDestroy() when usage is finished.

Keywords

distributed array, create, global, distributed, vector

See Also

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

Level:beginner
Location:
src/dm/da/src/dadist.c
Index of all DA routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/sles/examples/tutorials/ex14.c
src/sles/examples/tutorials/ex18.c
src/sles/examples/tutorials/ex20.c
src/sles/examples/tutorials/ex14f.F
src/snes/examples/tutorials/ex3.c
src/snes/examples/tutorials/ex5.c
src/snes/examples/tutorials/ex5c.c
src/snes/examples/tutorials/ex7.c
src/snes/examples/tutorials/ex8.c
src/snes/examples/tutorials/ex9.c
src/snes/examples/tutorials/ex12.c