#include "petscsys.h" PetscErrorCode PetscEListFind(PetscInt n,const char *const *list,const char *str,PetscInt *value,PetscBool *found)Not Collective
n | - number of strings in | |
list | - list of strings to search | |
str | - string to look for, empty string "" accepts default (first entry in list) |
value | - index of matching string (if found) | |
found | - boolean indicating whether string was found (can be NULL) |