# DMGetInterpolation

Gets interpolation matrix between two DA or VecPack objects

### Synopsis

    #include "petscda.h"
    PetscErrorCode PETSCDM_DLLEXPORT DMGetInterpolation(DM dm1,DM dm2,Mat *mat,Vec *vec)

Collective on DM

### Input Parameter

| dm1 | - the DM object
| dm2 | - the second, coarser DM object

### Output Parameter

| mat | - the interpolation
| vec | - the scaling (optional)

### See Also

DMDestroy(), DMView(), DMCreateGlobalVector(), DMGetColoring(), DMGetMatrix()

Level:developer
Location:src/dm/da/utils/dm.c
Index of all DA routines
Table of Contents for all manual pages
Index of all manual pages