DMSwarmCellDMSetSort#
Sets the sort context over the active DMSwarmCellDM for the DMSwarm
Synopsis#
#include "petscdmswarm.h"
PetscErrorCode DMSwarmCellDMSetSort(DMSwarmCellDM celldm, DMSwarmSort sort)
Not Collective
Input Parameters#
celldm - The
DMSwarmCellDMobjectsort - The
DMSwarmSortobject, orNULLto clear the context
Note#
User should destroy sort afterward with DMSwarmSortDestroy(), as the DMSwarmCellDM will hold a reference.
See Also#
DMSwarmCellDM, DM, DMSwarmSetCellDM(), DMSwarmSortGetAccess(), DMSwarmSortDestroy()
Level#
intermediate
Location#
Index of all DMSwarm routines
Table of Contents for all manual pages
Index of all manual pages