:orphan: # 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 Parameter - ***dm -*** `DM` providing the mass matrix ## See Also [](ch_ts), `DM`, `DMTSCreateRHSMassMatrixLumped()`, `DMCreateMassMatrix()`, `DMCreateMassMatrix()`, `DMTS` ## Level developer ## Location src/ts/utils/dmlocalts.c ## Examples src/ts/tutorials/ex45.c
--- [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)