DMSwarmPushCellDM#

Attaches a DM to a DMSWARM

Synopsis#

#include "petscdmswarm.h"   
PetscErrorCode DMSwarmPushCellDM(DM sw, DM dmcell, PetscInt Nf, const char *dmFields[], const char coordField[])

Collective

Input Parameters#

  • sw - a DMSWARM

  • dmcell - the DM to attach to the DMSWARM

  • Nf - the number of swarm fields defining the DM

  • dmFields - an array of field names for the fields defining the DM

  • coordField - the name for the swarm field to use for particle coordinates on the cell DM

Note#

The attached DM (dmcell) will be queried for point location and neighbor MPI-rank information if DMSwarmMigrate() is called.

See Also#

DM, DMSWARM, DMSwarmSetType(), DMSwarmPopCellDM(), DMSwarmSetCellDM(), DMSwarmMigrate()

Level#

beginner

Location#

src/dm/impls/swarm/swarm.c


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