DMSubDomainRestrict#

restricts user-defined problem data to a block DM by running hooks registered by DMSubDomainHookAdd()

Synopsis#

#include "petscdm.h"          
#include "petscdmlabel.h"     
#include "petscds.h"     
PetscErrorCode DMSubDomainRestrict(DM global, VecScatter oscatter, VecScatter gscatter, DM subdm)

Collective if any hooks are

Input Parameters#

  • fine - finer DM to use as a base

  • oscatter - scatter from domain global vector filling subdomain global vector with overlap

  • gscatter - scatter from domain global vector filling subdomain local vector with ghosts

  • coarse - coarser DM to update

See Also#

DM Basics, DM, DMCoarsenHookAdd(), MatRestrict()

Level#

developer

Location#

src/dm/interface/dm.c


Edit on GitLab

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