Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue when multiple sims are performed for models including FFD #3995

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

chria
Copy link
Contributor

@chria chria commented Sep 12, 2024

If multiple simulations are performed for a model that includes FFD without fully releasing the library, then the second simulation would fail due to that the global structure "cosim" has not been set to NULL in the destructor. The use case can be for instance when the model is compiled into an FMU and the following is performed:

  1. Load the FMU
  2. Simulate
  3. Use the FMI reset method
  4. Simulate again (will fail)

An example model is Buildings.ThermalZones.Detailed.Examples.FFD.ForcedConvection)

Setting the structure "cosim" to NULL will resolve the issue.

@mwetter mwetter merged commit a6b8a00 into lbl-srg:master Sep 12, 2024
2 of 3 checks passed
@mwetter
Copy link
Member

mwetter commented Sep 12, 2024

@chria : Thanks for catching this, I will also apply it to the maintenance branches.

mwetter added a commit that referenced this pull request Sep 12, 2024
mwetter added a commit that referenced this pull request Sep 12, 2024
mwetter added a commit that referenced this pull request Sep 12, 2024
@chria
Copy link
Contributor Author

chria commented Sep 12, 2024

Great! Thanks @mwetter

mwetter added a commit that referenced this pull request Sep 14, 2024
mwetter added a commit that referenced this pull request Sep 14, 2024
mwetter added a commit that referenced this pull request Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants