Fault-lang / Fault

a language for building system dynamic models
https://fault.tech
MIT License
165 stars 6 forks source link

Better initializing of model variables plus swapping values for stock/flows #34

Closed mbellotti closed 1 year ago

mbellotti commented 1 year ago

This branch got a little out of control as the "simple" feature proved to be a bit more complicated.

Ended up needing to break up the run block first to isolate initialization of variables from loop logic.

Then some false starts with how to actually change struct values after initialization.