DMConvert#
Converts a DM to another DM, either of the same or different type.
Synopsis#
#include "petscdm.h"
#include "petscdmlabel.h"
#include "petscds.h"
PetscErrorCode DMConvert(DM dm, DMType newtype, DM *M)
Collective
Input Parameters#
Output Parameter#
M - pointer to new
DM
Note#
Cannot be used to convert a sequential DM to a parallel or a parallel to sequential,
the MPI communicator of the generated DM is always the same as the communicator
of the input DM.
See Also#
Level#
intermediate
Location#
Examples#
src/dm/impls/forest/tutorials/ex1.c
src/dm/dt/fe/tests/ex4.c
src/dm/impls/forest/tests/ex1.c
src/dm/impls/forest/tests/ex2.c
src/dm/impls/forest/tests/ex3.c
src/dm/impls/plex/tests/ex1.c
src/dm/impls/plex/tests/ex44.c
src/dm/impls/plex/tests/ex52.c
src/dm/impls/plex/tests/ex53.c
src/snes/tutorials/ex11.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages