SlicedCreateLocalVector

Creates a vector of the correct size to be gatherer from by the slice.

Synopsis

#include "petscda.h"     
#include "petscmat.h"    
#include "petscmat.h"    
PetscErrorCode PETSCDM_DLLEXPORT SlicedCreateLocalVector(Sliced slice,Vec *lvec)
Collective on Sliced

Input Parameter

slice - the slice 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

SlicedDestroy(), SlicedCreate(), SlicedGetGlobalIndices(), SlicedCreateGlobalVector()

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