Changes between Version 1 and Version 2 of Ticket #6087, comment 5
- Timestamp:
- 2020-09-08T11:22:00Z (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #6087, comment 5
v1 v2 1 1 I can not help but feel that this ''call to record'' evaluation, even when prefixed correctly, might be picking up the wrong function anyway. 2 2 3 If you follow the extends chain above you can see that the call `Medium.setState_pTX` in the binding on `mu_nominal` should be using the version of `setState_pTX` from `HelmholtzMedia.HelmHoltzFluids.Carbondioxide` (a.k.a. `HelmholtzMedia.Interfaces.PartialHelmholtzMedium`). The latter is a much more involved and complicated function than the original `setState_pTX` in `Modelica.Fluids`. I twould not expect it to be evaluated and inlined so easily.3 If you follow the extends chain above you can see that the call `Medium.setState_pTX` in the binding on `mu_nominal` should be using the version of `setState_pTX` from `HelmholtzMedia.HelmHoltzFluids.Carbondioxide` (a.k.a. `HelmholtzMedia.Interfaces.PartialHelmholtzMedium`). The latter is a much more involved and complicated function than the original `setState_pTX` in `Modelica.Fluids`. I would not expect it to be evaluated and inlined so easily. 4 4 5 5 @casella Maybe you can make more sense of it.