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

Skip to content
Snippets Groups Projects
Commit 0fd4cb5a authored by Markus QUARITSCH's avatar Markus QUARITSCH
Browse files

Merge pull request #329 in VECTO/vecto-sim from...

Merge pull request #329 in VECTO/vecto-sim from ~EMQUARIMA/vecto-sim:bugfix/VECTO-401-computation-of-n_95h-n80h-etc-fails to develop

* commit 'f88e96c0':
  fix: if d == 0 no solution exists
parents c87509ca f88e96c0
No related branches found
No related tags found
No related merge requests found
......@@ -180,6 +180,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Data.Engine
if (k.IsEqual(0, 0.0001)) {
// constant torque: solve linear equation
// power = M * n_eng_avg
if (d.IsEqual(0, 0.0001)) {
return new List<PerSecond>();
}
return (power / d).ToEnumerable();
}
......
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