DMTSSetMassMatrix#

set the TS mass matrix evaluation function into a DMTS

Synopsis#

#include "petscts.h" 
PetscErrorCode DMTSSetMassMatrix(DM dm, TSMassMatrixFn *func, PetscCtx ctx)

Not Collective

Input Parameters#

  • dm - DM to be used with TS

  • func - mass matrix evaluation routine, see TSMassMatrixFn for the calling sequence

  • ctx - application context for the mass matrix evaluation (may be NULL)

Note#

TSSetMassMatrix() is normally used, but it calls this function internally because the application context is actually associated with the DM. Because the callback lives on the DM, it is copied to coarser DMs in a multigrid hierarchy, so an integrator can assemble a level-appropriate mass matrix.

See Also#

TS: Scalable ODE and DAE Solvers, DMTS, TS, DM, TSMassMatrixFn, DMTSGetMassMatrix(), TSSetMassMatrix()

Level#

developer

Location#

src/ts/utils/dmts.c


Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages