:orphan: # DMTSCreateRHSMassMatrix This creates the 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 DMTSCreateRHSMassMatrix(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. ## See Also [](ch_ts), `DM`, `DMTSCreateRHSMassMatrixLumped()`, `DMTSDestroyRHSMassMatrix()`, `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)