#include "petscsys.h" PetscErrorCode PetscMPIIntSortSemiOrdered(PetscInt n, PetscMPIInt arr)Not Collective
|n||- number of values|
|arr||- array of PetscMPIInts|
|arr||- sorted array of integers|
This function serves as an alternative to PetscSortMPIInt(). While this function works for any array of PetscMPIInts it is significantly faster if the array is not totally random. There are exceptions to this and so it is __highly__ recomended that the user benchmark their code to see which routine is fastest.