ENH: support true/false, yes/no values for FOAM_ABORT (#1896)
- consistent with FOAM_SIGFPE etc. - centralize code as error::useAbort() static function to avoid scattering the logic throughout the code. ENH: also accept "0" and "1" string values for Switch - not the normal path for Switch input (eg, from a dictionary), but consistent with bool definitions and simplifies string parsing. This means that `FOAM_SIGFPE=1 application` will now also work.
Showing
- etc/bashrc 4 additions, 0 deletionsetc/bashrc
- etc/cshrc 4 additions, 0 deletionsetc/cshrc
- src/OpenFOAM/db/error/IOerror.C 2 additions, 2 deletionssrc/OpenFOAM/db/error/IOerror.C
- src/OpenFOAM/db/error/error.C 10 additions, 2 deletionssrc/OpenFOAM/db/error/error.C
- src/OpenFOAM/db/error/error.H 3 additions, 0 deletionssrc/OpenFOAM/db/error/error.H
- src/OpenFOAM/db/functionObjects/functionObjectList/functionObjectList.C 1 addition, 1 deletion...b/functionObjects/functionObjectList/functionObjectList.C
- src/OpenFOAM/primitives/bools/Switch/Switch.C 3 additions, 3 deletionssrc/OpenFOAM/primitives/bools/Switch/Switch.C
- src/OpenFOAM/primitives/bools/Switch/Switch.H 2 additions, 1 deletionsrc/OpenFOAM/primitives/bools/Switch/Switch.H
Please register or sign in to comment