Add tests of the Stock & Flow domain-specific language and fix any bugs revealed
Additional fixes
Allows unary functions like sqrt and exp in dynamic variable generation and flows
Fixes no sum variables to use :SV_NONE
Constants are allowed in the DSL and passed to StockAndFlowF, but StockAndFlowF does not appear to support them. E.g.
dyvarname = 1.0 - x
Recursive dynamic variables, e.g. v = v + v, are rejected.
NOTE
Re-opened as a clean commit for a cleaner git history, due to divergences between this branch and master. Similar to the reason that #16 was closed in favour of #20 -- #28 continued from #16; this continues from #20
Description
Add tests of the Stock & Flow domain-specific language and fix any bugs revealed
Additional fixes
sqrt
andexp
in dynamic variable generation and flows:SV_NONE
StockAndFlowF
, butStockAndFlowF
does not appear to support them. E.g.dyvarname = 1.0 - x
v = v + v
, are rejected.NOTE
Re-opened as a clean commit for a cleaner git history, due to divergences between this branch and master. Similar to the reason that #16 was closed in favour of #20 -- #28 continued from #16; this continues from #20
fyi @Xiaoyan-Li