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:
Mark Olesen
2019-11-19 14:22:03 +01:00
committed by Andrew Heather
parent a5a222f7cf
commit 9e6683f7bc
17 changed files with 1779 additions and 1223 deletions

View File

@ -1,5 +1,5 @@
#-------------------------------*- makefile -*---------------------------------
WM_VERSION = OPENFOAM=1909
WM_VERSION = OPENFOAM=1910
AR = ar
ARFLAGS = cr