Changes between Version 1 and Version 2 of Ticket #6087, comment 5


Ignore:
Timestamp:
2020-09-08T11:22:00Z (4 years ago)
Author:
Mahder Alemseged Gebremedhin

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6087, comment 5

    v1 v2  
    11I can not help but feel that this ''call to record'' evaluation, even when prefixed correctly, might be picking up the wrong function anyway.
    22
    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.
     3If 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.
    44
    55@casella Maybe you can make more sense of it.