From e2bffd6fb370f0c67b8b4f2e4e9bbf342e657854 Mon Sep 17 00:00:00 2001 From: Daniel Warner Date: Tue, 29 Mar 2011 19:44:38 +0100 Subject: [PATCH] Renamed max_newton_naphson --- SGDP4.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SGDP4.cpp b/SGDP4.cpp index 78748b2..04d5991 100644 --- a/SGDP4.cpp +++ b/SGDP4.cpp @@ -394,7 +394,7 @@ void SGDP4::CalculateFinalPositionVelocity(const double& tsince, const double& e /* * sensibility check for N-R correction */ - const double maxNewtonRaphson = 1.25 * fabs(sqrt(elsq)); + const double max_newton_naphson = 1.25 * fabs(sqrt(elsq)); bool kepler_running = true; @@ -420,10 +420,10 @@ void SGDP4::CalculateFinalPositionVelocity(const double& tsince, const double& e * f / (fdot - 0.5 * d2f * f/fdot) */ if (i == 0) { - if (delta_epw > maxNewtonRaphson) - delta_epw = maxNewtonRaphson; - else if (delta_epw < -maxNewtonRaphson) - delta_epw = -maxNewtonRaphson; + if (delta_epw > max_newton_naphson) + delta_epw = max_newton_naphson; + else if (delta_epw < -max_newton_naphson) + delta_epw = -max_newton_naphson; } else { delta_epw = f / (fdot + 0.5 * esine * delta_epw); }