#include "petscsys.h" int PetscOptionsGetenv(MPI_Comm comm,const char *name,char env[],int len,PetscTruth *flag)Collective on MPI_Comm
comm | - communicator to share variable | |
name | - name of environmental variable | |
len | - amount of space allocated to hold variable |
flag | - if not PETSC_NULL tells if variable found or not | |
env | - value of variable |
If comm does not contain the 0th process in the MPIRUN it is likely on many systems that the environmental variable will not be set unless you put it in a universal location like a .chsrc file
Level:advanced
Location:src/sys/src/utils/pdisplay.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages