-
Notifications
You must be signed in to change notification settings - Fork 85
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
fmi3GetNumberOfEventIndicators/fmi3GetNumberOfContinuousStates #741
Comments
Alternatively we could use the |
What is the number of states/eventindicators if state/eventindicators variables are of type array? |
@friedrichatgc, would it be sufficient to define that the event indicators / states vectors must be "compressed" (i.e. all active elements at the beginning) and attribute "numberOf..." defines the max. length of these vectors? |
I don't think that we can define a maximal number of states/event indicators since this is only possible if all Dimension's of array variables being states/event indicators have a max attribute. I think we need to remove numberOfEventIndicators from the xml file as it was already done for numberOfContinousStates. The importing tool must than calculate this value based all other information in the xml file or even at runtime if structural parameters change. |
How would that work? |
Design Meeting: Decision: check for non-normative text. @friedrichatgc : Will do it In 2.1.13 we have an API call for getNumber for continuous states (which provides redundant information, it is there for convenience) Masoud: We should add a comment that this information is redundant |
fixed with #829 |
The number of event indicators and the number states can change dependent on the "structural parameters".
For the number of event indicators this dependency must be defined in modelDescription.xml using the "numberOfEventIndicators" attribute in "ModelStructure". An C-API function is provided to get the number at runtime. However, this dependency definition is fully unclear to me and seem not to be described in the standard document.
For the number of continuous states no such dependency is provided in modelDescription.xml. Only a C-API function is provided to get the number. This look inconsistent to me.
Please clarify and unify the number of event and states handling in the document.
The text was updated successfully, but these errors were encountered: