petsc-3.3-p7 2013-05-11


Gets injection matrix between two DMDA or DMComposite objects


#include "petscdm.h"     
PetscErrorCode  DMCreateInjection(DM dm1,DM dm2,VecScatter *ctx)
Collective on DM

Input Parameter

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

Output Parameter

ctx -the injection

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 injection.

See Also

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

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