DMSwarmGetCellSwarm#
Extracts a single cell from the DMSWARM
object, returns it as a single cell DMSWARM
. The cell DM
is filtered for fields of that cell, and the filtered DM
is used as the cell DM
of the new swarm object.
Synopsis#
#include "petscdmswarm.h"
PetscErrorCode DMSwarmGetCellSwarm(DM sw, PetscInt cellID, DM cellswarm)
Noncollective
Input Parameters#
Notes#
This presently only supports DMSWARM_PIC
type
Should be restored with DMSwarmRestoreCellSwarm()
Changes to this cell of the swarm will be lost if they are made prior to restoring this cell.
See Also#
Level#
beginner
Location#
Index of all DMSwarm routines
Table of Contents for all manual pages
Index of all manual pages