:orphan:
# DMSwarmSortGetIsValid
Gets the isvalid flag associated with a `DMSWARM` point sorting context 
## Synopsis
```
PETSC_EXTERN PetscErrorCode DMSwarmSortGetIsValid(DM dm, PetscBool *isvalid)
```
Not Collective


## Input parameter

- ***dm -*** a `DMSWARM` object



## Output parameter

- ***isvalid -*** flag indicating whether the sort context is up-to-date





## See Also
 `DMSWARM`, `DMSwarmSetType()`, `DMSwarmSortGetAccess()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/swarm/swarmpic_sort.c.html#DMSwarmSortGetIsValid">src/dm/impls/swarm/swarmpic_sort.c</A>


---
[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)  
