Opened 16 years ago

Last modified 15 years ago

#1076 closed defect (fixed)

Modification of an unknown variable does not give an error (from MathCore)

Reported by: krsta Owned by: krsta
Priority: high Milestone:
Component: Version:
Keywords: Cc: krsta,

Description

When modifying a varible there is no check if that variable exists. The model simulates and produces results but give no errors. In the below example the variable y is not available in A. Model B checks OK and simulates but it should not.

model A
 parameter Real x = 1;
end A;
model B
  extends A(y=2) "Error: y is not available in A";
end B;

Change History (1)

comment:1 Changed 15 years ago by brugard

Note: See TracTickets for help on using tickets.