Opened 13 years ago

Last modified 13 years ago

#1508 closed defect (fixed)

terminal() support

Reported by: sjoelund.se Owned by: sjoelund.se
Priority: high Milestone:
Component: Version:
Keywords: Cc: sjoelund.se, wbraun

Description

terminal() is not supported in the generated code. Willi, could we support it by adding an extra event-handling iteration where terminal is set to true before finishing the simulation?
Or should we just make it return false?

{{{ model test111

Real a(start = 0.1);

algorithm
if terminal() then

a:=1.0;

Modelica.Utilities.Streams.print("terminal", "terminal.txt");
end if;

end test111; }}}

Change History (1)

comment:1 Changed 13 years ago by wbraun

added an extra event-handling iteration at the end of the simulation.

Note: See TracTickets for help on using tickets.