From e3d8ca73656c33800e29880f54a8e04d5f808251 Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Thu, 10 Jun 2021 09:49:15 +0200 Subject: [PATCH] fix writing declaration aux --- VectoCore/VectoCore/OutputData/FileIO/JSONFileWriter.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/VectoCore/VectoCore/OutputData/FileIO/JSONFileWriter.cs b/VectoCore/VectoCore/OutputData/FileIO/JSONFileWriter.cs index 8ecf2b447b..fd1d5a08bd 100644 --- a/VectoCore/VectoCore/OutputData/FileIO/JSONFileWriter.cs +++ b/VectoCore/VectoCore/OutputData/FileIO/JSONFileWriter.cs @@ -966,15 +966,16 @@ public class JSONFileWriter : IOutputFileWriter auxOut.Add("Type", auxEntry.Type.Name()); auxOut.Add("Technology", new string[] { }); } else { + auxOut.Add("ID", auxEntry.Type.Key()); auxOut.Add("Type", auxEntry.Type.Name()); auxOut.Add("Technology", engineeringAuxEntry.Technology); } auxList.Add(auxOut); - body.Add("Aux", auxList); + } - + body.Add("Aux", auxList); } if (!job.SavedInDeclarationMode && job.Vehicle is IVehicleEngineeringInputData engVehicle) { -- GitLab