Opened 19 years ago

Last modified 12 years ago

#51 closed defect (fixed)

reinit() is not accepted

Reported by: kajny Owned by: kajny
Priority: critical Milestone:
Component: Backend Version:
Keywords: Cc: kajny, Adrian Pop

Description


Change History (2)

comment:1 by kajny, 19 years ago

Reinit statements gives execution failed.

Testmodel:

block FilterBlock1

parameter Real T = 1 "Time constant";
parameter Real k = 1 "Gain";
input Real u = 1;
output Real y;

protected

Real x;

equation

der(x) = (u - x)/T;
y = k*x;

algorithm

when initial() then

reinit(x, u); if x is u since der(x) = (u - x)/T

end when;

end FilterBlock1;

comment:2 by Lennart Ochel, 12 years ago

Component: Backend

I guess, that is no valid Modelica code.

Note: See TracTickets for help on using tickets.