#include "petscsys.h" PetscErrorCode PetscFindInt(PetscInt key, PetscInt n, const PetscInt X[], PetscInt *loc)Not Collective
key | - the integer to locate | |
n | - number of values in the array | |
X | - array of integers |
loc | - the location if found, otherwise -(slot+1) where slot is the place the value would go |