Opened 14 years ago

Last modified 7 years ago

#1468 closed discussion

Discontinuity in results not properly stored (?) — at Version 1

Reported by: asodja Owned by: asodja
Priority: normal Milestone: 1.12.0
Component: Run-time Version:
Keywords: Cc: asodja, Willi Braun, Lennart Ochel

Description (last modified by Martin Sjölund)

Consider the model

model Test
  Real x(start=1);

equation
  der(x) = -2 * x;

  when time > 0.5 then
    reinit(x,-1);
  end when;
end Test;

At the time of event (time = 0.5) there are stored two data points:

t_1 = 0.499999023437500, x_1 = 0.36
t_2 = 0.500000000000000, x_2 = 1.00

Times t_1 and t_2 should be identical (t_1 == t_2), but are not.
This is fine for plotting, but it is very impractical, since from the results it is impossible to determine if we are dealing with discontinuity of with just very short continuous time interval! As a consequence, some postprocessing algorithms might fail.

Maybe this should be even reported as a bug?!

Change History (1)

comment:1 by Martin Sjölund, 11 years ago

Cc: asodja, → asodja
Description: modified (diff)
Note: See TracTickets for help on using tickets.