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.
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.