Browse Source

Fix variable name (ta)

Eric Ramat 1 year ago
parent
commit
0669069e6c

+ 2 - 2
src/artis-star/kernel/devs/Simulator.hpp

@@ -134,7 +134,7 @@ namespace artis {
 
                 typename Time::type duration = _dynamics.ta(t);
 
-                assert(ta >= 0);
+                assert(duration >= 0);
 
                 type::_tn = type::_tl + duration;
 
@@ -260,7 +260,7 @@ namespace artis {
 
                 typename Time::type duration = _dynamics.ta(t);
 
-                assert(ta >= 0);
+                assert(duration >= 0);
 
                 type::_tn = type::_tl + duration;
                 type::clear_bag();

+ 3 - 3
src/artis-star/kernel/fddevs/Simulator.hpp

@@ -138,7 +138,7 @@ namespace artis {
 
                 typename Time::type duration = _dynamics.tau(t);
 
-                assert(ta >= 0);
+                assert(duration >= 0);
 
                 type::_tn = type::_tl + duration;
 
@@ -267,7 +267,7 @@ namespace artis {
 
                         typename Time::type duration = _dynamics.tau(t);
 
-                        assert(ta >= 0);
+                        assert(duration >= 0);
 
                         type::_tl = t;
                         type::_tn = type::_tl + duration;
@@ -278,7 +278,7 @@ namespace artis {
 
                         typename Time::type duration = _dynamics.tau(t);
 
-                        assert(ta >= 0);
+                        assert(duration >= 0);
 
                         type::_tl = t;
                         type::_tn = type::_tl + duration;

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

@@ -136,7 +136,7 @@ namespace artis {
 
                 typename Time::type duration = _dynamics.ta(t);
 
-                assert(ta >= 0);
+                assert(duration >= 0);
 
                 type::_tn = type::_tl + duration;
 
@@ -273,7 +273,7 @@ namespace artis {
 
                 typename Time::type duration = _dynamics.ta(t);
 
-                assert(ta >= 0);
+                assert(duration >= 0);
 
                 type::_tn = type::_tl + duration;
                 type::_tl = t;