-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transfer variables after setup and initialisation
`fixed_step_algorithm::initialize()` ends by calling `simulator::start_simulation()`, which, for an FMI 2.0 FMU ends up calling `fmi2ExitInitializationMode()`. This function is not prohibited from modifying variable values, which means that we must assume that it does. Previously we did not, which led to issue #609, which to me looks like a pretty severe correctness issue. Here, I've added `get_variables()` and `set_variables()` calls at additional points in the call sequence of a `slave_simulator()` where variable values may be needed/changed, and I've added a variable transfer at the end of `fixed_step_algorithm::initialize()`. Closes #609.
- Loading branch information
1 parent
1b5b849
commit 6ee3911
Showing
2 changed files
with
28 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters