Opened 14 years ago

Last modified 14 years ago

#1341 closed defect (fixed)

Event handling: Duplicate events

Reported by: Martin Sjölund Owned by: Martin Sjölund
Priority: high Milestone:
Component: Version:
Keywords: Cc: Martin Sjölund, Frenkel TUD, Willi Braun

Description

branches/sjoelund-functiontree/testsuite/mosfiles/Random.mos produces the last line twice.
It shouldn't:
{{{ when sample(0,0.2) then

(x, seed) := random(pre(seed));
Modelica.Utilities.Streams.print("time = " + String(time, format=".1f") + ", x = " + String(x , format=".6f") + "\n");

end when;}}}

{{ time = 3.0, x = 0.180925

time = 3.0, x = 0.180925}}

Do we generate a terminal() event that causes events that are not supposed to run at the last time step?

Change History (1)

comment:1 by Jens Frenkel, 14 years ago

  • resolved in revision 6815
Note: See TracTickets for help on using tickets.