Closed maltelenz closed 1 year ago
Here:
https://github.com/MarekMatejak/Physiolibrary/blob/b29e62d9be6cd4ed6c4ecfb56349be7e355c905b/Physiolibrary/Fluid.mo#L3062
An enumeration literal is used to index in lungs.substances.
lungs.substances
However, lungs.substances is indexed using an Integer:
Integer
https://github.com/MarekMatejak/Physiolibrary/blob/b29e62d9be6cd4ed6c4ecfb56349be7e355c905b/Physiolibrary/Fluid.mo#L702
I believe this is not legal Modelica. The specification says:
The type of the index should correspond to the type used for declaring the dimension of the array.
Hi Malte, thank you for the feedback. I will fix it on Monday. Kind Regards Marek
I saw there were some more models with similar issues, I'm sure you will encounter them during your fix.
Here:
https://github.com/MarekMatejak/Physiolibrary/blob/b29e62d9be6cd4ed6c4ecfb56349be7e355c905b/Physiolibrary/Fluid.mo#L3062
An enumeration literal is used to index in
lungs.substances
.However,
lungs.substances
is indexed using anInteger
:https://github.com/MarekMatejak/Physiolibrary/blob/b29e62d9be6cd4ed6c4ecfb56349be7e355c905b/Physiolibrary/Fluid.mo#L702
I believe this is not legal Modelica. The specification says: