Browse Source

Fix tl/tn computation (pdevs)

Eric Ramat 1 year ago
parent
commit
ae903e5fa3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/artis-star/kernel/pdevs/Simulator.hpp

+ 1 - 1
src/artis-star/kernel/pdevs/Simulator.hpp

@@ -270,13 +270,13 @@ namespace artis {
                 } else {
                     _dynamics.dext(t, t - type::_tl, type::get_bag());
                 }
+                type::_tl = t;
 
                 typename Time::type duration = _dynamics.ta(t);
 
                 assert(duration >= 0);
 
                 type::_tn = type::_tl + duration;
-                type::_tl = t;
                 type::clear_bag();
 
 #ifdef WITH_TRACE