# DMTSDestroyRHSMassMatrix
Destroys the mass matrix and solver stored in the `DM` context, if they exist. 
## Synopsis
```
#include "petscts.h" 
PetscErrorCode DMTSDestroyRHSMassMatrix(DM dm)
```
Logically Collective


## Input Parameters

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





## See Also
 [](chapter_ts), `DM`, `DMTSCreateRHSMassMatrixLumped()`, `DMCreateMassMatrix()`, `DMCreateMassMatrix()`, `DMTS`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/utils/dmlocalts.c.html#DMTSDestroyRHSMassMatrix">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.html</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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
