mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: add trapFpe and setNaN optimisationSwitch (issue #517)
- allows configuration without an environment variable. For compatibility still respect FOAM_SIGFPE and FOAM_SETNAN env-variables - The env-variables are now treated as true/false switch values. Previously there was just a check for env exists or not, but this can be fairly fragile for a user's environment.
This commit is contained in:
@ -8,8 +8,8 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
runParallel $(getApplication)
|
||||
|
||||
unset FOAM_SIGFPE
|
||||
runParallel -s reconstruct redistributePar -reconstruct
|
||||
# Disable trapping of floating-point exceptions
|
||||
FOAM_SIGFPE=false runParallel -s reconstruct redistributePar -reconstruct
|
||||
|
||||
# A bit more testing of decomposing
|
||||
\cp system/controlDict_nextWrite system/controlDict
|
||||
|
||||
Reference in New Issue
Block a user