# VecPackAddDA

adds a DA vector to a VecPack

### Synopsis

    #include "petscda.h"
    #include "petscmat.h"
    PetscErrorCode PETSCDM_DLLEXPORT VecPackAddDA(VecPack packer,DA da)

Collective on VecPack

### Input Parameter

| packer | - the packer object
| da | - the DA object

### See Also

VecPackDestroy(), VecPackGather(), VecPackAddDA(), VecPackCreateGlobalVector(),
VecPackScatter(), VecPackCreate(), VecPackGetGlobalIndices(), VecPackGetAccess(), VecPackGetLocalVectors(), VecPackRestoreLocalVectors()

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