DMCompositeCreateGlobalVector

Creates a vector of the correct size to be gathered into by the packer.

Synopsis

#include "petscda.h"     
PetscErrorCode PETSCDM_DLLEXPORT DMCompositeCreateGlobalVector(DMComposite packer,Vec *gvec)
Collective on DMComposite

Input Parameter

packer -the packer object

Output Parameters

gvec -the global vector

Notes: Once this has been created you cannot add additional arrays or vectors to be packed.

See Also

DMCompositeDestroy(), DMCompositeAddArray(), DMCompositeAddDA(), DMCompositeScatter(),
DMCompositeGather(), DMCompositeCreate(), DMCompositeGetGlobalIndices(), DMCompositeGetAccess(), DMCompositeGetLocalVectors(), DMCompositeRestoreLocalVectors(), DMCompositeGetEntries()

Level:advanced
Location:
src/dm/da/utils/pack.c
Index of all DA routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/snes/examples/tutorials/ex21.c.html