From 4f5612bcc0c65650a5658f35e042d535c7f59b48 Mon Sep 17 00:00:00 2001
From: Markus Quaritsch <markus.quaritsch@tugraz.at>
Date: Wed, 14 Sep 2022 19:30:49 +0200
Subject: [PATCH] make input parameter to run simulation in multistep-bus
 simulation optional. default: run simulation

---
 VectoCore/VectoCore/InputData/FileIO/JSON/JSONInputData.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/VectoCore/VectoCore/InputData/FileIO/JSON/JSONInputData.cs b/VectoCore/VectoCore/InputData/FileIO/JSON/JSONInputData.cs
index fc354f0bc5..5e2803d0b8 100644
--- a/VectoCore/VectoCore/InputData/FileIO/JSON/JSONInputData.cs
+++ b/VectoCore/VectoCore/InputData/FileIO/JSON/JSONInputData.cs
@@ -1027,7 +1027,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON
 
 			PrimaryInputDataFile = Path.Combine(BasePath, Body.GetEx<string>("PrimaryVehicleResults"));
 			CompletedInputDataFile = Path.Combine(BasePath, Body.GetEx<string>("CompletedVehicle"));
-			RunSimulation = Body.GetEx<bool>(JsonKeys.BUS_RunSimulation);
+			RunSimulation = Body.ContainsKey(JsonKeys.BUS_RunSimulation) ? Body.GetEx<bool>(JsonKeys.BUS_RunSimulation) : true;
 			
 
             //PrimaryVehicle = CreateReader(primaryInputData);
-- 
GitLab