DAGetGlobalVector

Gets a MPI PETSc vector that may be used with the DAXXX routines.

Synopsis

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

Input Parameter

da -the distributed array

Output Parameter

g -the global vector

Note

The output parameter, g, is a regular PETSc vector that should be returned with DARestoreGlobalVector() DO NOT call VecDestroy() on it.

Keywords

distributed array, create, Global, vector

See Also

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

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