Opened 14 years ago
Last modified 14 years ago
#1508 closed defect (fixed)
terminal() support
Reported by: | Martin Sjölund | Owned by: | Martin Sjölund |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | Martin Sjölund, Willi Braun |
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; }}}
Note:
See TracTickets
for help on using tickets.
added an extra event-handling iteration at the end of the simulation.