Opened 6 years ago

Closed 6 years ago

#5193 closed defect (fixed)

The NF does not evaluate parameters when setting -d=evaluateAllParameters

Reported by: Francesco Casella Owned by: Per Östlund
Priority: high Milestone: 2.0.0
Component: New Instantiation Version:
Keywords: Cc:

Description

The following test model

model TestEvaluate
  parameter Real p = 10;
  Real x;
equation
  x = time*p;
end TestEvaluate;

with -d=newInst,evaluateAllParameters is flattened by the NF to

class TestEvaluate
  parameter Real p = 10.0;
  Real x;
equation
  x = time * p;
end TestEvaluate;

instead of

class TestEvaluate
  parameter Real p = 10.0;
  Real x;
equation
  x = 10.0 * time;
end TestEvaluate;

as the old front-end does.

Change History (1)

comment:1 by Per Östlund, 6 years ago

Resolution: fixed
Status: newclosed

Fixed in 407b2de.

Note: See TracTickets for help on using tickets.