Skip to content

Commit

Permalink
Comment out debug spam
Browse files Browse the repository at this point in the history
  • Loading branch information
blowfishpro committed Dec 15, 2015
1 parent 6f2f894 commit ee8c8e2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Binary file modified GameData/SolverEngines/Plugins/SolverEngines.dll
Binary file not shown.
24 changes: 12 additions & 12 deletions SolverEngines/EngineThermodynamics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ public void FromVesselAmbientConditions(Vessel v, bool useExternalTemp = false)
_T = v.atmosphericTemperature;

Far = 0d; // Recalculates, so no need to do by hand
if (Math.Abs(v.atmDensity / Rho - 1d) > 0.01d)
Debug.LogWarning("Ambient density does not obey the gas law for vessel " + v.name);
//if (Math.Abs(v.atmDensity / Rho - 1d) > 0.01d)
// Debug.LogWarning("Ambient density does not obey the gas law for vessel " + v.name);
}

/// <summary>
Expand All @@ -328,11 +328,11 @@ public void FromAmbientAtAltitude(double altitude, CelestialBody body = null)
_T = FlightGlobals.getExternalTemperature(altitude, body);
Far = 0d; // Recalculates, so no need to do by hand

if (Math.Abs(FlightGlobals.getAtmDensity(P, T, body) / Rho - 1d) > 0.01d)
if (body != null)
Debug.LogWarning("Ambient density does not obey the gas law on body " + body.name + " at altitude " + altitude.ToString());
else
Debug.LogWarning("Ambient density does not obey the gas law on body at altitude " + altitude.ToString());
//if (Math.Abs(FlightGlobals.getAtmDensity(P, T, body) / Rho - 1d) > 0.01d)
// if (body != null)
// Debug.LogWarning("Ambient density does not obey the gas law on body " + body.name + " at altitude " + altitude.ToString());
// else
// Debug.LogWarning("Ambient density does not obey the gas law on body at altitude " + altitude.ToString());
}

/// <summary>
Expand All @@ -348,11 +348,11 @@ public void FromAmbientAtLocation(Vector3d position, CelestialBody body)
_T = FlightGlobals.getExternalTemperature(position, body);
Far = 0d; // Recalculates, so no need to do by hand

if (Math.Abs(FlightGlobals.getAtmDensity(P, T, body) / Rho - 1d) > 0.01d)
if (body != null)
Debug.LogWarning("Ambient density does not obey the gas law on body " + body.name + " at position " + position.ToString());
else
Debug.LogWarning("Ambient density does not obey the gas law on body at position " + position.ToString());
//if (Math.Abs(FlightGlobals.getAtmDensity(P, T, body) / Rho - 1d) > 0.01d)
// if (body != null)
// Debug.LogWarning("Ambient density does not obey the gas law on body " + body.name + " at position " + position.ToString());
// else
// Debug.LogWarning("Ambient density does not obey the gas law on body at position " + position.ToString());
}

/// <summary>
Expand Down

0 comments on commit ee8c8e2

Please sign in to comment.