#include "petscsys.h" PetscErrorCode PetscOptionsGetBool(const char pre[],const char name[],PetscBool *ivalue,PetscBool *set)Not Collective
pre | - the string to prepend to the name or PETSC_NULL | |
name | - the option one is seeking |
ivalue | - the logical value to return | |
set | - PETSC_TRUE if found, else PETSC_FALSE |
  PetscOptionsGetBool(const char b[],PetscBool *i,PetscBool *f) | -> | PetscOptionsGetBool(PETSC_NULL,b,i,f) |
If the user does not supply the option (as either true or false) ivalue is NOT changed. Thus you NEED TO ALWAYS initialize the ivalue.
Level:beginner
Location:src/sys/objects/options.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages