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

Fix Cpp error "size(X) not implemented" #7602

Merged
merged 1 commit into from
Jun 23, 2021
Merged

Fix Cpp error "size(X) not implemented" #7602

merged 1 commit into from
Jun 23, 2021

Conversation

rfranke
Copy link
Member

@rfranke rfranke commented Jun 22, 2021

This happened for two models from MSL and three models from ModelicaTest.
For example, the code generation for Modelica.Fluid.Examples.IncompressibleFluidNetwork
calls daeExpSize for a literal, unrolled array instead of a cref supported so far.

./OMCppModelica_3.2.3_cpp_Modelica.Fluid.Examples.IncompressibleFluidNetworkFunctions.cpp:7594:19: error: expected \')\'
    if (!(size(X) not implemented > 0))

This happened for two models from MSL and three models from ModelicaTest.
For example, the code generation for Modelica.Fluid.Examples.IncompressibleFluidNetwork
calls daeExpSize to a literal, unrolled array instead of a cref supported so far.
@sjoelund sjoelund merged commit a5ff63c into OpenModelica:master Jun 23, 2021
@rfranke rfranke deleted the sizeX branch June 23, 2021 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants