DMSwarmFillMassMatrix#

Assemble the particle mass matrix between a DMSWARM and a DMPLEX

Synopsis#

#include "petscdmswarm.h"   
PetscErrorCode DMSwarmFillMassMatrix(DM dmc, DM dmf, Mat mass, PetscInt rStart, PetscInt maxC, PetscBool useDeltaFunction, PetscInt Nfc, const PetscInt bs[], PetscReal *coordVals[], PetscCtx ctx)

Collective

Input Parameters#

  • dmc - The DMSWARM object

  • dmf - The DMPLEX object

  • mass - The mass matrix to fill up

  • rStart - The starting row index for this process

  • maxC - The maximum number of columns per row

  • useDeltaFunction - Flag to use a delta function for the particle shape function

  • Nfc - The number of swarm coordinate fields

  • bs - The block size for each swarm coordinate field

  • coordVals - The values for each particle for each swarm coordinate field

  • ctx - The user context

See Also#

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

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