From 0b4405c721609bcd526fd13bcbcc5de43a02d3eb Mon Sep 17 00:00:00 2001
From: Markus Quaritsch <markus.quaritsch@tugraz.at>
Date: Wed, 13 Apr 2022 17:02:17 +0200
Subject: [PATCH] invoke idle controler only if no dry-run (otherwise, already
 calculated values will be overwritten)

---
 VectoCore/VectoCore/Models/SimulationComponent/Impl/Clutch.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/Clutch.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/Clutch.cs
index 2343b659ce..b1d2d16a6f 100644
--- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/Clutch.cs
+++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/Clutch.cs
@@ -107,7 +107,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
 				return HandleClutchOpen(absTime, dt, outTorque, outAngularVelocity, false);
 			}
 
-			if (IdleController != null) {
+			if (IdleController != null && !dryRun) {
 				IdleController.Reset();
 			}
 
-- 
GitLab