Opened 2 years ago

#5423 assigned defect

Variable array index in derivative

Reported by: Jonathan Kämpe Owned by: Jonathan Kämpe
Priority: minor Milestone:
Component: Modelica/FrontEnd Version: trunk
Keywords: Cc:

Description

The following model does not flatten correctly:

        Real[2] x;
    equation
        der(x[integer(time)]) = time;

It flattens to:

 Real x[2];
equation
 (x[1:2])[integer(time)] = time;

Change History (0)

Note: See TracTickets for help on using tickets.