DMCopyDisc#

Copy the fields and discrete systems for the DM into another DM

Synopsis#

#include "petscdm.h"          
#include "petscdmlabel.h"     
#include "petscds.h"     
PetscErrorCode DMCopyDisc(DM dm, DM newdm)

Collective

Input Parameter#

  • dm - The DM

Output Parameter#

  • newdm - The DM

Developer Note#

Really ugly name, nothing in PETSc is called a Disc plus it is an ugly abbreviation

See Also#

DM Basics, DM, DMCopyFields(), DMCopyDS()

Level#

advanced

Location#

src/dm/interface/dm.c

Examples#

src/ts/tutorials/ex45.c
src/ts/tutorials/ex48.c
src/ts/tutorials/ex47.c
src/ts/tutorials/ex18.c
src/ts/tutorials/ex30.c
src/ts/tutorials/ex53.c
src/ts/tutorials/ex76.c
src/ts/tutorials/ex77.c
src/ts/tutorials/ex46.c
src/snes/tutorials/ex23.c


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