# DMPlexComputeMassMatrixGeneral
Form the local portion of the mass matrix M from the coarse `DM` to a non-nested fine `DM`. 
## Synopsis
```
#include "petscdmplex.h"   
PetscErrorCode DMPlexComputeMassMatrixGeneral(DM dmc, DM dmf, Mat mass, void *user)
```

## Input Parameters

- ***dmf  -*** The fine mesh
- ***dmc  -*** The coarse mesh
- ***user -*** The user context



## Output Parameter

- ***mass  -*** The mass matrix





## See Also
 [](chapter_unstructured), `DM`, `DMPLEX`, `DMPlexComputeMassMatrixNested()`, `DMPlexComputeInterpolatorNested()`, `DMPlexComputeInterpolatorGeneral()`, `DMPlexComputeJacobianFEM()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexfem.c.html#DMPlexComputeMassMatrixGeneral">src/dm/impls/plex/plexfem.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plexfem.c)


[Index of all DMPlex routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
