open-simulation-platform / libcosim

OSP C++ co-simulation library
https://open-simulation-platform.github.io/libcosim
Mozilla Public License 2.0
61 stars 10 forks source link

Loosen causality checks for system_structure initial values #746

Closed kyllingstad closed 9 months ago

kyllingstad commented 1 year ago

This removes the overly strict, non-conformant causality check in inject_system_structure() to fix #742. As a small compensation, I've added a new variability check in add_variable_value(). This prevents something which is never allowed, namely to modify a constant variable, and it does so at an earlier stage than inject_system_structure().