diff --git a/VectoCore/VectoCore/InputData/Reader/DataObjectAdapter/DeclarationDataAdapterHeavyLorry.cs b/VectoCore/VectoCore/InputData/Reader/DataObjectAdapter/DeclarationDataAdapterHeavyLorry.cs index 11ecb3ad5b16323e5d906445befa27f9739acdeb..29073277e1d46f1a13fdbbb707fa2a1289829d37 100644 --- a/VectoCore/VectoCore/InputData/Reader/DataObjectAdapter/DeclarationDataAdapterHeavyLorry.cs +++ b/VectoCore/VectoCore/InputData/Reader/DataObjectAdapter/DeclarationDataAdapterHeavyLorry.cs @@ -523,6 +523,9 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter public AxleGearData CreateDummyAxleGearData(IGearboxDeclarationInputData gbxData) { + if (double.IsNaN(gbxData.AxlegearRatio)) { + throw new VectoException("Axlegear ratio required in gearbox data for gearboxes with included axlegear"); + } return new AxleGearData() { AxleGear = new TransmissionData() { Ratio = gbxData.AxlegearRatio, diff --git a/VectoCore/VectoCore/InputData/Reader/Impl/AbstractDeclarationVectoRunDataFactory.cs b/VectoCore/VectoCore/InputData/Reader/Impl/AbstractDeclarationVectoRunDataFactory.cs index bcd17322cf964f8c063febd011ce7df51b2a68e3..b9cc76a1c2f56e1b7b11de1ce1e4131c5193c25b 100644 --- a/VectoCore/VectoCore/InputData/Reader/Impl/AbstractDeclarationVectoRunDataFactory.cs +++ b/VectoCore/VectoCore/InputData/Reader/Impl/AbstractDeclarationVectoRunDataFactory.cs @@ -81,7 +81,7 @@ namespace TUGraz.VectoCore.InputData.Reader.Impl { _segment.Missions.First().Loadings.First()); _airdragData = DataAdapter.CreateAirdragData(vehicle.Components.AirdragInputData, _segment.Missions.First(), _segment); - if (InputDataProvider.JobInputData.Vehicle.Components.GearboxInputData.DifferentialIncluded) { + if (InputDataProvider.JobInputData.Vehicle.AxleConfiguration.AxlegearIncludedInGearbox()) { _axlegearData = DataAdapter.CreateDummyAxleGearData(InputDataProvider.JobInputData.Vehicle.Components.GearboxInputData); } else { _axlegearData = DataAdapter.CreateAxleGearData(InputDataProvider.JobInputData.Vehicle.Components.AxleGearInputData);