DMCreateSectionSubDM#
Returns an IS and subDM containing a PetscSection that encapsulates a subproblem defined by a subset of the fields in a PetscSection in the DM.
Synopsis#
#include "petscdm.h"
PetscErrorCode DMCreateSectionSubDM(DM dm, PetscInt numFields, const PetscInt fields[], const PetscInt numComps[], const PetscInt comps[], IS *is, DM *subdm)
Not Collective
Input Parameters#
dm - The
DMobjectnumFields - The number of fields to incorporate into
subdmfields - The field numbers of the selected fields
numComps - The number of components from each field to incorporate into
subdm, or PETSC_DECIDE for all componentscomps - The component numbers of the selected fields (omitted for PTESC_DECIDE fields)
Output Parameters#
is - The global indices for the subproblem or
NULLsubdm - The
DMfor the subproblem, which must already have be cloned fromdmorNULL
Notes#
If is and subdm are both NULL this does nothing
See Also#
DMCreateSubDM(), DMGetLocalSection(), DMPlexSetMigrationSF(), DMView()
Level#
intermediate
Location#
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages