Changes between Initial Version and Version 1 of Ticket #6087, comment 5
- Timestamp:
- 2020-09-08T11:18:37Z (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #6087, comment 5
initial v1 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_nominalshould 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`. It would 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`. It would not expect it to be evaluated and inlined so easily. 4 4 5 5 @casella Maybe you can make more sense of it.