petsc-3.8.3 2017-12-09
Report Typos and Errors


Gets restriction matrix between two DM objects


#include "petscdm.h"          
#include "petscdmlabel.h"     
#include "petscds.h"     
PetscErrorCode  DMCreateRestriction(DM dm1,DM dm2,Mat *mat)
Collective on DM

Input Parameter

dm1 - the DM object
dm2 - the second, finer DM object

Output Parameter

mat -the restriction

Notes: For DMDA objects this only works for "uniform refinement", that is the refined mesh was obtained DMRefine() or the coarse mesh was obtained by DMCoarsen(). The coordinates set into the DMDA are completely ignored in computing the interpolation.

See Also

DMDestroy(), DMView(), DMCreateGlobalVector(), DMCreateColoring(), DMCreateMatrix(), DMRefine(), DMCoarsen(), DMCreateInterpolation()

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