:orphan: # PetscSFSetRankOrder sort multi-points for gathers and scatters by rank order ## Synopsis ``` #include "petscsf.h" PetscErrorCode PetscSFSetRankOrder(PetscSF sf, PetscBool flg) ``` Logically Collective ## Input Parameters - ***sf -*** star forest - ***flg -*** `PETSC_TRUE` to sort, `PETSC_FALSE` to skip sorting (lower setup cost, but non-deterministic) ## See Also `PetscSF`, `PetscSFType`, `PetscSFGatherBegin()`, `PetscSFScatterBegin()` ## Level advanced ## Location src/vec/is/sf/interface/sf.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/sf/interface/sf.c) [Index of all PetscSF routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)