Opened 7 years ago

Closed 7 years ago

#4830 closed defect (duplicate)

Problems with records in C code generated starting from NF

Reported by: Francesco Casella Owned by: Per Östlund
Priority: high Milestone: 2.0.0
Component: New Instantiation Version:
Keywords: Cc:

Description

Please check Modelica_3.2.2_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T. The following errors is reported:

In file included from Modelica_3.2.2_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.c:2:
In file included from ./Modelica_3.2.2_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T_model.h:18:
./Modelica_3.2.2_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T_functions.h:24:141: 
error: unknown type name 'Modelica_Media_Common_AuxiliaryProperties'
modelica_real omc_Modelica_Media_Air_ReferenceAir_Air__Utilities_T__props__ph(threadData_t *threadData, modelica_real _p, modelica_real _h, Modelica_Media_Common_AuxiliaryProperties _aux);
./Modelica_3.2.2_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T_functions.h:224:1:
error: unknown type name 'Modelica_Media_Air_ReferenceAir_Medium_ThermodynamicState'
Modelica_Media_Air_ReferenceAir_Medium_ThermodynamicState omc_Modelica_Media_Air_ReferenceAir_Medium_setState__pT(threadData_t *threadData, modelica_real _p, modelica_real _T);

The missing types correspond to Modelica.Media record types. Apparently something goes wrong in the way these records are passed to the code generation layer.

Change History (1)

comment:1 by Per Östlund, 7 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #4818.

Note: See TracTickets for help on using tickets.