-
Notifications
You must be signed in to change notification settings - Fork 87
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
Allow setting continuous states in Event Mode if reinit = false #1955
Conversation
small changes to make it less likely that someone misinterprate it, maybe need to ad some symbols to continuous-time state to make it linkable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did some changes
Fixed tag for <<state,continuous-time states>>
Co-authored-by: Christian Bertsch <[email protected]>
Should setting (all) variables with
to
|
Torsten S: I want to change the second comma do "and" . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be I'm missing something here. Acccording to the definition of "reinit", if reinit=false, you are not allowed to reinitialize the state variable. So you cannot call fmi3SetXX. Is it a typo or I'm missing something?
I think this is correct, since an importer may only set a continuous state in Event Mode, if the FMU does not recalculate it. |
OK, I got your point. Then let's first clarify the reinit attribute. Is it just for information purposes? What's useful for? |
changed <<causality>> = <<parameter>>, <<variability>> = <<tunable>> to <<causality>> = <<parameter>> and <<variability>> = <<tunable>>
@masoud-najafi I see your point, i don't have a strong requirement that you are forbidden to set continuous time state with reinit = true, its a larger chance that you screw things up though, but this is still an advanced feature so i am ok with letting all states be set. from the master. |
FMI Design Webmeeting: Torsten: are clocks covered by this, or is this unrelated? |
fixes #1950