mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
ENH: add conditionals to #eval (string to scalar)
Example,
($radius > 10) ? sin(degToRad(45)) : cos(degToRad(30))
- protect division and modulo against zero-divide.
- add scanner/parser debugging switches in the namespace,
selectable as "stringToScalar". For example,
debug parser: foamDictionary -debug-switch stringToScalar=2
debug scanner: foamDictionary -debug-switch stringToScalar=4
debug both: foamDictionary -debug-switch stringToScalar=6
This commit is contained in:
committed by
Andrew Heather
parent
a5a222f7cf
commit
9e6683f7bc
@ -1,5 +1,5 @@
|
||||
#-------------------------------*- makefile -*---------------------------------
|
||||
WM_VERSION = OPENFOAM=1909
|
||||
WM_VERSION = OPENFOAM=1910
|
||||
|
||||
AR = ar
|
||||
ARFLAGS = cr
|
||||
|
||||
Reference in New Issue
Block a user