static char help[] = "Tests retrieving unused PETSc options.\n\n"; #include int main(int argc,char **argv) { PetscInt i,N,M; char **names,**values; PetscBool set; PetscFunctionBeginUser; PetscCall(PetscInitialize(&argc,&argv,(char*)0,help)); PetscCall(PetscOptionsGetInt(NULL,NULL,"-get_an_integer",&M,&set)); if (set) PetscCall(PetscPrintf(PETSC_COMM_WORLD,"Option used: name:-get_an_integer value: %" PetscInt_FMT "\n",M)); PetscCall(PetscOptionsLeftGet(NULL,&N,&names,&values)); for (i=0; i