From 147512400f3d1a611cd25b008c7530be34a30754 Mon Sep 17 00:00:00 2001
From: Michael Krisper <michael.krisper@tugraz.at>
Date: Tue, 26 Apr 2022 19:34:51 +0200
Subject: [PATCH] VelocitySpeedGearshiftPreprocessor: Removed try-catch again
 because error was solved in TransmissionInputRetarder.

---
 .../Impl/VelocitySpeedGearshiftPreprocessor.cs            | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/VelocitySpeedGearshiftPreprocessor.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/VelocitySpeedGearshiftPreprocessor.cs
index 5be874c09e..03fb6648e2 100644
--- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/VelocitySpeedGearshiftPreprocessor.cs
+++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/VelocitySpeedGearshiftPreprocessor.cs
@@ -106,13 +106,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
 					gearbox.EngageTime = 100.SI<Second>();
 					gearbox._nextGear = gearForSpeed;
 
-					try {
-						var vehicleSpeed = SimulateRollingVehicle(vehicle, gradient, container);
-						tmp.Add(new Entry { StartVelocity = speed, Gradient = gradient, EndVelocity = vehicleSpeed });
-					} catch (Exception e) {
-						throw new VectoException($"Exception during PreProcessing for gradient {gradient:F2}: {e.Message}", e);
-					}
+					var vehicleSpeed = SimulateRollingVehicle(vehicle, gradient, container);
 					modData?.Reset();
+					tmp.Add(new Entry { StartVelocity = speed, Gradient = gradient, EndVelocity = vehicleSpeed });
 				}
 			}
 
-- 
GitLab