DMRestoreGlobalVector#
Returns a PETSc vector that obtained from DMGetGlobalVector()
. Do not use with vector obtained via DMCreateGlobalVector()
.
Synopsis#
#include "petscdm.h"
PetscErrorCode DMRestoreGlobalVector(DM dm, Vec *g)
Not Collective
Input Parameters#
dm - the
DM
g - the global vector
See Also#
DM
, DMCreateGlobalVector()
, VecDuplicate()
, VecDuplicateVecs()
,
DMDACreate1d()
, DMDACreate2d()
, DMDACreate3d()
, DMGlobalToGlobalBegin()
,
DMGlobalToGlobalEnd()
, DMGlobalToGlobal()
, DMCreateLocalVector()
, DMGetGlobalVector()
, DMClearGlobalVectors()
Level#
beginner
Location#
Examples#
src/snes/tutorials/ex33.c
src/snes/tutorials/ex22.c
src/snes/tutorials/ex75.c
src/snes/tutorials/ex69.c
src/snes/tutorials/ex7.c
src/snes/tutorials/ex27.c
src/snes/tutorials/ex76.c
src/snes/tutorials/ex36.c
src/snes/tutorials/ex63.c
src/snes/tutorials/ex13.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages