DMSwarmPreallocateMassMatrix#

Preallocate particle mass matrix between a DMSWARM and a DMPLEX

Synopsis#

#include "petscdmswarm.h"   
PetscErrorCode DMSwarmPreallocateMassMatrix(DM dmc, DM dmf, Mat mass, PetscInt *rStart, PetscInt *maxC, PetscCtx ctx)

Collective

Input Parameters#

  • dmc - The DMSWARM object

  • dmf - The DMPLEX object

  • mass - The mass matrix to preallocate

  • rStart - The starting row index for this process

  • maxC - The maximum number of columns per row

  • ctx - The user context

See Also#

DMPlex: Unstructured Grids, DM, DMSWARM, DMPLEX, DMCreateMassMatrix(), DMSwarmFillMassMatrix()

Level#

developer

Location#

src/dm/impls/swarm/swarm.c


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