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 PetscDS

  • minDegree - the minimum polynomial degree to consider when selecting discretizations, or PETSC_DETERMINE

  • maxDegree - the maximum polynomial degree to consider when selecting discretizations, or PETSC_DETERMINE

  • dmNew - the target DM used to resolve boundary condition labels for the copied boundaries

Output Parameter#

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#

src/dm/dt/interface/dtds.c


Index of all DT routines
Table of Contents for all manual pages
Index of all manual pages