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
Cyclical definition in Modelica.Media.Incompressible.TableBased #1390
Comments
Comment by eshmoylova on 6 Feb 2014 20:30 UTC |
Comment by hubertus on 6 Feb 2014 20:36 UTC |
Comment by hubertus on 6 Feb 2014 20:41 UTC |
Comment by dietmarw on 6 Feb 2014 21:59 UTC |
Modified by hubertus on 6 Feb 2014 22:23 UTC |
Changelog modified by hubertus on 6 Feb 2014 22:23 UTC |
Modified by hubertus on 6 Feb 2014 22:24 UTC |
Changelog modified by hubertus on 6 Feb 2014 22:24 UTC |
Comment by dietmarw on 6 Feb 2014 22:29 UTC |
Comment by beutlich on 17 Aug 2015 10:16 UTC |
Reported by eshmoylova on 10 Jan 2014 17:23 UTC
When package Modelica.Media.Incompressible.TableBased extends Modelica.Media.Interfaces.PartialMedium it modifies the definition of the Temperature type as
Temperature(min = T_min, max = T_max));
T_min and T_max are later defined to be of type Temperature:
constant Temperature T_min "Minimum temperature valid for medium model";
constant Temperature T_max "Maximum temperature valid for medium model";
It creates a cyclical definition of type Temperature in this class. In order to resolve the definition of Temperature we need to determine T_min and T_max, in order to determine T_min and T_max we need to resolve their type Temperature, which we can resolve only when we resolve the type of T_min and T_max.
A simple fix would be to define T_min and T_max to be of type Modelica.SIunits.Temperature.
Migrated-From: https://trac.modelica.org/Modelica/ticket/1390
The text was updated successfully, but these errors were encountered: