PetscDSCopy#
Copy the contents of a PetscDS into another PetscDS on a new DM.
Synopsis#
#include "petscds.h"
PetscErrorCode PetscDSCopy(PetscDS ds, PetscInt minDegree, PetscInt maxDegree, DM dmNew, PetscDS dsNew)
Collective
Input Parameters#
ds - the source
PetscDSminDegree - the minimum polynomial degree to consider when selecting discretizations, or
PETSC_DETERMINEmaxDegree - the maximum polynomial degree to consider when selecting discretizations, or
PETSC_DETERMINEdmNew - the target
DMused to resolve boundary condition labels for the copied boundaries
Output Parameter#
dsNew - the destination
PetscDS
Note#
This copies constants, exact solutions, bounds, discretizations, equations, field contexts, cohesive flags, jet degrees, and boundary conditions.
See Also#
PetscDS, PetscDSCopyEquations(), PetscDSCopyConstants(), PetscDSCopyExactSolutions(), PetscDSCopyBounds(), PetscDSCopyBoundary()
Level#
developer
Location#
Index of all DT routines
Table of Contents for all manual pages
Index of all manual pages