Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#2744 closed defect (duplicate)

pre(x) outside a when clause

Reported by: Lennart Ochel Owned by: somebody
Priority: high Milestone: 1.9.1
Component: Backend Version: trunk
Keywords: Cc: Willi Braun

Description

The following model simulates without any error message:

model test
  Real x(start=1) = pre(x)+der(x);
end test;

x is a continuous time variable and it is not allowed to use pre for it outside a when clause.

Change History (3)

comment:1 by Willi Braun, 10 years ago

Duplicate see #2620.

The Question is were should we detect that? In the Backend or Frontend?

comment:2 by Lennart Ochel, 10 years ago

Resolution: duplicate
Status: newclosed

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

Backend of course. The frontend does not know if it is discrete-time or not.

Note: See TracTickets for help on using tickets.