petsc-3.11.4 2019-09-28
DMStagCreateCompatibleDMStag
create a compatible DMStag with different dof/stratum
Synopsis
PetscErrorCode DMStagCreateCompatibleDMStag(DM dm,PetscInt dof0,PetscInt dof1,PetscInt dof2,PetscInt dof3,DM *newdm)
Collective
Input Parameters
| dm | - the DMStag object
|
| dof0,dof1,dof2,dof3 | - number of dof on each stratum in the new DMStag
|
Output Parameters
newdm -the new, compatible DMStag
Notes
Dof supplied for strata too big for the dimension are ignored; these may be set to 0.
In contrast to DMDACreateCompatibleDMDA(), coordinates are not reused.
See Also
DMSTAG, DMDACreateCompatibleDMDA(), DMGetCompatibility(), DMStagMigrateVec()
Level
intermediate
Location
src/dm/impls/stag/stagutils.c
Examples
src/dm/impls/stag/examples/tutorials/ex1.c.html
src/dm/impls/stag/examples/tutorials/ex2.c.html
src/dm/impls/stag/examples/tutorials/ex3.c.html
src/dm/impls/stag/examples/tutorials/ex4.c.html
Index of all DMSTAG routines
Table of Contents for all manual pages
Index of all manual pages