Skip to content

Useful example why fmi3UpdateDiscreteStates might request discreteStatesNeedUpdate #2150

@chrbertsch

Description

@chrbertsch

Discussed in #2148

Originally posted by klausschuch March 24, 2026
While discussing #2133, the following question came up:
Why would an FMU set discreteStatesNeedUpdate=True in a fmi3UpdateDiscreteStates() call?
I can only come up with very artificial example but have no idea for a good model that needs this.
According to the "Equations and Actions" table in https://fmi-standard.org/docs/3.0.2/#EventMode, the values returned by the Get... calls should already consider the new discrete state anyway. Note, that this is unrelated to the fact if fmi3EvaluateDiscreteStates got called or not.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions