Share
 
 

Local Simulation Environment Variables

Additional environment variables for Local Simulation can be set using a pan.env file. The variables need only to be defined if it is desired to override the default definitions. Local Simulation and the auxiliary programs look in the following directories for the pan.env file:

.pan_env 
~/pan_env 
$panDir/pan_env 
/opt/pan/pan_env

If no pan.env file is found, the default values are used. For convenience during the Local Simulation installation, the contents of the following file are copied to the $panDir/pan_env/pan.env file:

# This file contains definitions of environment variables for Pan 
# and the auxiliary programs such as plotp3 
# 
KMP_STACKSIZE:500000000
##Uncomment and edit the following line to override the default number of threads.
#OMP_NUM_THREADS:4

For Windows installations, unless OMP NUM THREADS has been manually set either as a Windows environment variable or via the pan.env file, at run time the solver determines the number of physical cores of the system and uses that value for the number of threads during simulation.

Was this information helpful?