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

minor bug in fmi3GetBinary & fmi3SetBinary #595

Closed
masoud-najafi opened this issue Sep 27, 2024 · 0 comments · Fixed by #601
Closed

minor bug in fmi3GetBinary & fmi3SetBinary #595

masoud-najafi opened this issue Sep 27, 2024 · 0 comments · Fixed by #601
Labels
bug Something isn't working

Comments

@masoud-najafi
Copy link

masoud-najafi commented Sep 27, 2024

In the API fmi3GetBinary (in fmi3Functions.c ) this piece of code is missing.

if (S->isDirtyValues) { 
    CALL(calculateValues(S)); 
    S->isDirtyValues = false; 
} 

Also in
fmi3SetBinary
you need to add this line:

if (nValueReferences > 0) S->isDirtyValues = true; 
@t-sommer t-sommer added the bug Something isn't working label Sep 27, 2024
t-sommer added a commit to t-sommer/Reference-FMUs that referenced this issue Oct 6, 2024
t-sommer added a commit to t-sommer/Reference-FMUs that referenced this issue Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants