Opened 10 years ago

Closed 7 years ago

#3077 closed defect (duplicate)

Error in parameter lookup

Reported by: Francesco Casella Owned by: Adrian Pop
Priority: high Milestone: 1.12.0
Component: Frontend Version: trunk
Keywords: Cc: Patrick Täuber

Description

The model ThermoPower.Examples.HRB.Simulators.OpenLoopSimulatorHtc gives the following compilation error:

[...Examples.mo:1433:85-1433:104:writable]
Error: Variable gamma_nom not found in scope ThermoPower.Gas.Flow1DFV$Plant$Boiler$GasSide

The model generating the error looks like this:

model HeatExchanger 
  parameter Real gamma_nom=150;
  ...
  Gas.Flow1DFV GasSide(
    redeclare model HeatTransfer =
      FlowDependentHeatTransferCoefficient(gamma_nom=gamma_nom));

OMC doesn't find gamma_nom in the scope of GasSide (which is correct), but then doesn't look for it in the scope of HeatExchanger, where it would be found.

Change History (9)

comment:1 by Martin Sjölund, 10 years ago

Milestone: 1.9.21.9.3

Milestone changed to 1.9.3 since 1.9.2 was released.

comment:2 by Martin Sjölund, 9 years ago

Milestone: 1.9.31.9.4

Moved to new milestone 1.9.4

comment:3 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.5

Milestone pushed to 1.9.5

comment:4 by Martin Sjölund, 9 years ago

Milestone: 1.9.51.10.0

Milestone renamed

comment:5 by Patrick Täuber, 8 years ago

Cc: Patrick Täuber added

Will this problem be fixed with the new instantiation?

comment:6 by Adrian Pop, 8 years ago

Yes, the new instantiation will handle this case.

comment:7 by Martin Sjölund, 8 years ago

Milestone: 1.10.01.11.0

Ticket retargeted after milestone closed

comment:8 by Martin Sjölund, 8 years ago

Milestone: 1.11.01.12.0

Milestone moved to 1.12.0 due to 1.11.0 already being released.

comment:9 by Francesco Casella, 7 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #2660

Note: See TracTickets for help on using tickets.