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

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

Merge branch 'master' into bugfix/VECTO-368-validation-error-on-gears-ratio

parents a55fa650 5f563e29
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,7 @@ Public Class JSONFileWriter
body.Add("WHTC-Urban", eng.WHTCUrban)
body.Add("WHTC-Rural", eng.WHTCRural)
body.Add("WHTC-Motorway", eng.WHTCMotorway)
body.Add("WHTC-Engineering", eng.WHTCEngineering)
body.Add("ColdHotBalancingFactor", eng.ColdHotBalancingFactor)
WriteFile(header, body, filename)
......
......@@ -99,7 +99,13 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON
public virtual double WHTCEngineering
{
get { return 1; }
get
{
if (Body["WHTC-Engineering"] == null) {
return 1;
}
return Body.GetEx<double>("WHTC-Engineering");
}
}
public virtual double WHTCMotorway
......
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