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 support for array inputs #391

Closed
PRAVEENFrmBOSCH opened this issue Aug 24, 2023 · 2 comments
Closed

Add support for array inputs #391

PRAVEENFrmBOSCH opened this issue Aug 24, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@PRAVEENFrmBOSCH
Copy link

I couldn't able to test the LinearTransform.fmu , i have tried using below csv.
input1.csv

Getting Error in below Code :
https://github.com/modelica/Reference-FMUs/blob/main/LinearTransform/model.c : setFloat64() Line no : 84

nValues is 1
m * n is 4

@PRAVEENFrmBOSCH
Copy link
Author

https://github.com/modelica/Reference-FMUs/blob/main/fmusim/fmusim_input.c : line no 243
always sending nValues=1

But in https://github.com/modelica/Reference-FMUs/blob/main/LinearTransform/model.c : setFloat64() Line no : 84
Throwing error when m*n > nValues which is 4 > 1

@PRAVEENFrmBOSCH PRAVEENFrmBOSCH changed the title Need an example input file(.csv) for LinearTransform.fmu Issue in testing the array datatype Aug 28, 2023
@t-sommer t-sommer changed the title Issue in testing the array datatype Add support for array inputs Aug 30, 2023
@t-sommer t-sommer added the enhancement New feature or request label Aug 30, 2023
@t-sommer
Copy link
Collaborator

t-sommer commented Sep 9, 2023

Solved with #395. See resources/LinearTransform_in.csv for an example of an input CSV with arrays.

@t-sommer t-sommer closed this as completed Sep 9, 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