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

Skip to content
Snippets Groups Projects
Commit e3e9a604 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

use warning instead of error for tc operating point to suppress messages in gui

parent a1e271df
No related branches found
No related tags found
No related merge requests found
......@@ -235,7 +235,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
x => VectoMath.Abs(DataBus.EngineSpeed - x.EngineSpeed).Value());
return operatingPoint;
} catch (VectoException ve) {
Log.Error(ve, "TorqueConverter: Failed to find operating point for DragPower {0}", engineResponse.DragPower);
Log.Warn(ve, "TorqueConverter: Failed to find operating point for DragPower {0}", engineResponse.DragPower);
var engineSpeed = VectoMath.Max(DataBus.EngineIdleSpeed, 0.8 * DataBus.EngineSpeed);
var retVal = FindValidTorqueConverterOperatingPoint(
......@@ -268,7 +268,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
}
return operatingPoint;
} catch (VectoException ve) {
Log.Error(
Log.Warn(
ve, "TorqueConverter: Failed to find operating point for MaxPower {0}",
engineResponse.DynamicFullLoadPower);
var engineSpeed = VectoMath.Max(DataBus.EngineSpeed, VectoMath.Min(DataBus.EngineRatedSpeed, DataBus.EngineSpeed));
......
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