:orphan: # DMSwarmSortRestoreAccess Invalidates the `DMSWARM` point sorting context ## Synopsis ``` PETSC_EXTERN PetscErrorCode DMSwarmSortRestoreAccess(DM dm) ``` Not Collective ## Input parameter - ***dm -*** a `DMSWARM` object ## Note You must call `DMSwarmSortGetAccess()` before calling `DMSwarmSortRestoreAccess()` ## See Also `DMSWARM`, `DMSwarmSetType()`, `DMSwarmSortGetAccess()` ## Level advanced ## Location src/dm/impls/swarm/swarmpic_sort.c ## Examples src/dm/tutorials/ex20.c
src/ksp/ksp/tutorials/ex70.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/swarm/swarmpic_sort.c) [Index of all DMSwarm routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)