From 407ce4477d2fc75edb5cf1135f4fc924e8d683fe Mon Sep 17 00:00:00 2001
From: "VKMTHD\\haraldmartini" <harald.martini@student.tugraz.at>
Date: Tue, 7 Feb 2023 16:58:43 +0100
Subject: [PATCH] uncommented warning when vehicle distance diverges from cycle

---
 .../Models/SimulationComponent/Impl/Vehicle.cs        | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/Vehicle.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/Vehicle.cs
index ffd2b1e675..0ef811c08b 100644
--- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/Vehicle.cs
+++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/Vehicle.cs
@@ -194,11 +194,12 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
 				Log.Warn("Distance field is not set!");
 			} else {
 				var distance = (SI)container[ModalResultField.dist];
-				//if (!distance.IsEqual(CurrentState.Distance)) {
-				//	Log.Warn("Vehicle Distance diverges from Cycle by {0} [m]. Distance: {1}",
-				//		(distance - CurrentState.Distance).Value(), distance);
-				//}
-			}
+                if (!distance.IsEqual(CurrentState.Distance))
+                {
+                    Log.Warn("Vehicle Distance diverges from Cycle by {0} [m]. Distance: {1}",
+                        (distance - CurrentState.Distance).Value(), distance);
+                }
+            }
 		}
 
 		public Newton RollingResistance(Radian gradient)
-- 
GitLab