Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit be57441a authored by Michael KRISPER's avatar Michael KRISPER
Browse files

PowertrainBuilder and PowertrainPosition: reformulated error message

parent 8c9c74f2
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,7 @@ namespace TUGraz.VectoCommon.InputData
public static bool IsParallelHybrid(this PowertrainPosition pos)
{
switch (pos) {
//case PowertrainPosition.HybridP0: // special case, currently not considered in VECTO
//case PowertrainPosition.HybridP0: // special case currently modelled in BusAuxiliary as SmartAlternator.
case PowertrainPosition.HybridP1:
case PowertrainPosition.HybridP2:
case PowertrainPosition.HybridP2_5:
......
......@@ -413,7 +413,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
throw new VectoException("ParallelHybrid needs exactly one electric motor.");
}
if (data.ElectricMachinesData.Any(e => e.Item1 == PowertrainPosition.HybridP0)) {
throw new VectoException("PowertrainPosition P0 is currently not supported.");
throw new VectoException("P0 Hybrids are modeled as SmartAlternator in the BusAuxiliary model.");
}
var container = new VehicleContainer(data.ExecutionMode, _modData, _sumWriter) { RunData = data };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment