# DMCompositeGetAccess

Allows one to access the individual packed vectors in their global representation.

### Synopsis

    #include "petscda.h"
    PetscErrorCode PETSCDM_DLLEXPORT DMCompositeGetAccess(DMComposite packer,Vec gvec,...)

Collective on DMComposite

### Input Parameter

| packer | - the packer object
| gvec | - the global vector
| ... | - the individual sequential or parallel objects (arrays or vectors)

Notes: Use DMCompositeRestoreAccess() to return the vectors when you no longer need them

### See Also

DMCompositeDestroy(), DMCompositeAddArray(), DMCompositeAddDA(), DMCompositeCreateGlobalVector(),
DMCompositeGather(), DMCompositeCreate(), DMCompositeGetGlobalIndices(), DMCompositeScatter(), DMCompositeRestoreAccess(), 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
src/snes/examples/tutorials/ex22.c.html
src/snes/examples/tutorials/ex24.c.html
src/snes/examples/tutorials/ex31.c.html
src/snes/examples/tutorials/mex34f90.F.html
src/snes/examples/tutorials/ex34f90.F.html
src/snes/examples/tutorials/mex35f90.F90.html
src/snes/examples/tutorials/ex35f90.F90.html
src/snes/examples/tutorials/mex36f90.F90.html
src/snes/examples/tutorials/ex36f90.F90.html
src/snes/examples/tutorials/mex37f90.F90.html