From b3769e2849a2b654c2c2035c08aa90b6dd7259b8 Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Wed, 27 Nov 2019 13:10:56 +0100 Subject: [PATCH] compute vehicleline correction in lation thread (sum-data and report afterwards are synchronized and thus a bottleneck) --- VectoCore/VectoCore/Models/Simulation/Impl/VectoRun.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/VectoCore/VectoCore/Models/Simulation/Impl/VectoRun.cs b/VectoCore/VectoCore/Models/Simulation/Impl/VectoRun.cs index e0be5aa4ae..520f952a91 100644 --- a/VectoCore/VectoCore/Models/Simulation/Impl/VectoRun.cs +++ b/VectoCore/VectoCore/Models/Simulation/Impl/VectoRun.cs @@ -136,6 +136,10 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl Container.AbsTime = AbsTime; } } while (response is ResponseSuccess); + foreach (var fuel in GetContainer().RunData.EngineData.Fuels) { + // calculate vehicleline correction here in local thread context because writing sum-data and report afterwards is synchronized + var cf = GetContainer().ModalData.VehicleLineCorrectionFactor(fuel.FuelData); + } } catch (VectoSimulationException vse) { Log.Error("SIMULATION RUN ABORTED! ========================"); Log.Error(vse); -- GitLab