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#

  • dm - the destination DMSWARM, whose current contents are discarded

  • ndm - pointer to the source DMSWARM; destroyed and set to NULL on return

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#

src/dm/impls/swarm/swarm.c


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