DMSwarmReplace#
Replace the internal state of a DMSWARM with that of another DMSWARM, sharing the underlying particle data and destroying the source DM.
Synopsis#
#include "petscdmswarm.h"
PetscErrorCode DMSwarmReplace(DM dm, DM *ndm)
Collective
Input Parameters#
Note#
The dimension, periodicity, name, and shared reference to the underlying particle bucket are transferred from the source to the destination.
See Also#
DM, DMSWARM, DMSwarmDuplicate(), DMDestroy()
Level#
developer
Location#
Index of all DMSwarm routines
Table of Contents for all manual pages
Index of all manual pages