:orphan:
# DMTSCreateRHSMassMatrixLumped
This creates the lumped mass matrix associated with the given `DM`, and a solver to invert it, and stores them in the `DM` context. 
## Synopsis
```
#include "petscts.h" 
PetscErrorCode DMTSCreateRHSMassMatrixLumped(DM dm)
```
Collective


## Input Parameter

- ***dm   -*** `DM` providing the mass matrix





## Note
The idea here is that an explicit system can be given a mass matrix, based on the `DM`, which is inverted on the RHS at each step.
Since the matrix is lumped, inversion is trivial.


## See Also
 [](ch_ts), `DM`, `DMTSCreateRHSMassMatrix()`, `DMTSDestroyRHSMassMatrix()`, `DMCreateMassMatrix()`, `DMTS`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/utils/dmlocalts.c.html#DMTSCreateRHSMassMatrixLumped">src/ts/utils/dmlocalts.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex45.c.html">src/ts/tutorials/ex45.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/utils/dmlocalts.c)


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