PETSc version 3.17.0
Fix/Edit manual page

# DMCopyAuxiliaryVec

Copy the auxiliary data to a new DM

### Synopsis

    #include "petscdm.h"
    #include "petscdmlabel.h"
    #include "petscds.h"
    PetscErrorCode DMCopyAuxiliaryVec(DM dm, DM dmNew)

Not collective

### Input Parameter

| dm | - The DM

### Output Parameter

| dmNew | - The new DM, now with the same auxiliary data

### See Also

DMGetNumAuxiliaryVec(), DMGetAuxiliaryVec(), DMSetAuxiliaryVec()

### Level

advanced

### Location

src/dm/interface/dm.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages