diff --git a/VectoCore/VectoCore/OutputData/SummaryDataContainer.cs b/VectoCore/VectoCore/OutputData/SummaryDataContainer.cs index c2b7b238c8cd99e430dc8b1f91c84751bf3391cc..7365e03f29c7cbe47125df545aceae85a32a6709 100644 --- a/VectoCore/VectoCore/OutputData/SummaryDataContainer.cs +++ b/VectoCore/VectoCore/OutputData/SummaryDataContainer.cs @@ -521,11 +521,11 @@ namespace TUGraz.VectoCore.OutputData row[ENGINE_MANUFACTURER] = runData.EngineData.Manufacturer; row[ENGINE_MODEL] = runData.EngineData.ModelName; row[ENGINE_FUEL_TYPE] = runData.EngineData.FuelType.GetLabel(); - row[ENGINE_RATED_POWER] = runData.EngineData.RatedPowerDeclared != null + row[ENGINE_RATED_POWER] = runData.EngineData.RatedPowerDeclared != null && runData.EngineData.RatedPowerDeclared > 0 ? runData.EngineData.RatedPowerDeclared.ConvertTo().Kilo.Watt : runData.EngineData.FullLoadCurves[0].MaxPower.ConvertTo().Kilo.Watt; row[ENGINE_IDLING_SPEED] = runData.EngineData.IdleSpeed.AsRPM.SI<Scalar>(); - row[ENGINE_RATED_SPEED] = runData.EngineData.RatedSpeedDeclared != null + row[ENGINE_RATED_SPEED] = runData.EngineData.RatedSpeedDeclared != null && runData.EngineData.RatedSpeedDeclared > 0 ? runData.EngineData.RatedSpeedDeclared.AsRPM.SI<Scalar>() : runData.EngineData.FullLoadCurves[0].RatedSpeed.AsRPM.SI<Scalar>(); row[ENGINE_DISPLACEMENT] = runData.EngineData.Displacement.ConvertTo().Cubic.Centi.Meter;