All of the following environment variables for Local Simulation are defined in the netfabb sim vars.sh file, and do not need to be defined directly in the bash shell or in ~/.bashrc.
By default, Local Simulation will use the maximum number of available cores. If hyper-threading is not turned off, it will use twice the number of physical cores which results in slow performance. It is best to set the maximum number of threads to the physical cores. To control the number of threads, use the OMP_NUM_THREADS environment variable. For example, for 16 threads type in the bash shell:
export OMP_NUM_THREADS=16
By default, Intel64 sets the limit of the number of bytes to allocate for each OpenMP* thread to 4 MB. For very large systems (more than 400,000 degrees of freedom) this may cause a segmentation fault. To change this, set the KMP_STACKSIZE environment variable to a value higher than the default. For example for 1 GB, type in bash shell:
export KMP_STACKSIZE=1g ulimit -s unlimited
For slow networks, the license check may timeout before a license is acquired. To resolve this issue, set the FLEXLM TIMEOUT variable with a value in ms:
export FLEXLM_TIMEOUT=1500000
Finally, the ADSK_NETFABB_LOCAL_SIM_HOME variable is used to detect existing installations.
It is recommended to edit these environment variables definitions in the netfabb sim vars.sh file, which should be sourced by the ~/.bashrc (or ~/.cshrc) file.