Commit 690846c9 authored by Alexander Lapshin's avatar Alexander Lapshin

.

parent 4e61792e
...@@ -36,13 +36,13 @@ void AscNodeOrbit::calc_asc_node(Propagator& prop, const TimeJD& date, const boo ...@@ -36,13 +36,13 @@ void AscNodeOrbit::calc_asc_node(Propagator& prop, const TimeJD& date, const boo
result = ascNodeOrbit.GetPhasePointJ2000(); result = ascNodeOrbit.GetPhasePointJ2000();
if (date < result.T) { if (date < result.T) {
throw Exp() << "internal error in ascending node method 2"; throw Exp() << "internal error in ascending node method 2 " << DaysInterval(date, result.T)*86400;
} }
} }
else { else {
if (!GetAscNodeYZ(*prop.GetPredictor()->GetPredictor(), prop.GetPredictor()->GetTime(), result, GetY, GetVY)) { if (!GetAscNodeYZ(*prop.GetPredictor()->GetPredictor(), prop.GetPredictor()->GetTime(), result, GetY, GetVY)) {
throw Exp() << "internal error in ascending node method 2"; throw Exp() << "internal error in ascending node method 3";
} }
} }
} }
...@@ -67,13 +67,13 @@ void AscNodeOrbit::calc_desc_node(Propagator& prop, const TimeJD& date, const bo ...@@ -67,13 +67,13 @@ void AscNodeOrbit::calc_desc_node(Propagator& prop, const TimeJD& date, const bo
//std::string res_s = DateToStr(result.T); //std::string res_s = DateToStr(result.T);
if (date < result.T) { if (date < result.T) {
throw Exp() << "internal error in ascending node method 2"; throw Exp() << "internal error in descending node method 2";
} }
} }
else { else {
if (!GetAscNodeYZ(*prop.GetPredictor()->GetPredictor(), prop.GetPredictor()->GetTime(), result, GetY, GetVY)) { if (!GetAscNodeYZ(*prop.GetPredictor()->GetPredictor(), prop.GetPredictor()->GetTime(), result, GetY, GetVY)) {
throw Exp() << "internal error in descending node method 2"; throw Exp() << "internal error in descending node method 3";
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment