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: lochel Owned by: somebody
Priority: high Milestone: 1.9.1
Component: Backend Version: trunk
Keywords: Cc: wbraun

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 Changed 10 years ago by wbraun

Duplicate see #2620.

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

comment:2 Changed 10 years ago by lochel

  • Resolution set to duplicate
  • Status changed from new to closed

comment:3 Changed 10 years ago by sjoelund.se

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

Note: See TracTickets for help on using tickets.