DMCompositeCreateLocalVector

Creates a vector of the correct size to contain all ghost points and redundant arrays.

Synopsis

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

Input Parameter

packer -the packer object

Output Parameters

lvec -the local vector

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

See Also

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

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