DAGetLocalVector
Gets a Seq PETSc vector that may be used with the DAXXX routines.
Synopsis
#include "petscda.h"
int DAGetLocalVector(DA da,Vec* g)
Not Collective
Input Parameter
da -the distributed array
Output Parameter
g -the local vector
Note
The output parameter, g, is a regular PETSc vector that should be returned with
DARestoreLocalVector() DO NOT call VecDestroy() on it.
Keywords
distributed array, create, local, 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
Examples
src/snes/examples/tutorials/ex3.c.html
src/snes/examples/tutorials/ex5.c.html
src/snes/examples/tutorials/ex14.c.html
src/snes/examples/tutorials/ex18.c.html
src/snes/examples/tutorials/ex19.c.html
src/snes/examples/tutorials/ex20.c.html
src/snes/examples/tutorials/ex23.c.html
src/snes/examples/tutorials/ex24.c.html
src/snes/examples/tutorials/ex5f90.F.html
src/ts/examples/tutorials/ex7.c.html