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

Add a convenient API to retrieve the variable sizes #1874

Open
masoud-najafi opened this issue May 16, 2023 · 0 comments
Open

Add a convenient API to retrieve the variable sizes #1874

masoud-najafi opened this issue May 16, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@masoud-najafi
Copy link
Collaborator

masoud-najafi commented May 16, 2023

Similar to fmi3GetNumberOfEventIndicators and fmi3GetNumberOfContinuousStates, it would be very convenient to have an API to retrieve the size of a multi-dimensional variable whose size changes as a function of a structural variable.
an API such as
fmiStatus fmi3GetSizeofVariable(fmi3Instance instance, fmi3ValueReference valueReference, int dimension, size_t *size);
For example for a 2D variable dimension can be 0 or 1.
Of course, the size can be computed using the information inside the XML, but an API is much easier on run-time.

@t-sommer t-sommer changed the title Add a convinient API to retrieve the variable sizes Add a convenient API to retrieve the variable sizes May 16, 2023
@t-sommer t-sommer added the enhancement New feature or request label May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants