EphemWrapper.cpp   EphemWrapper.cpp 
skipping to change at line 71 skipping to change at line 71
void EphemWrapper::init_de430(const char* filepath) void EphemWrapper::init_de430(const char* filepath)
{ {
InitDE430(filepath); InitDE430(filepath);
} }
void EphemWrapper::init_de431(const char* filepath) void EphemWrapper::init_de431(const char* filepath)
{ {
InitDE431(filepath); InitDE431(filepath);
} }
bool jd_fits_de431(const double jd) bool EphemWrapper::jd_fits_de431(const double jd)
{ {
//Correct limits found via jpl_get_double(). Limits hardcoded to avo id calls each time. //Correct limits found via jpl_get_double(). Limits hardcoded to avo id calls each time.
//return !(jd < -3027215.5 || jd > 7930192.5); //return !(jd < -3027215.5 || jd > 7930192.5);
//This limits inside those where sun can jump between ecliptic of da te and ecliptic2000. //This limits inside those where sun can jump between ecliptic of da te and ecliptic2000.
// We lose a month in -13000 and a few months in +17000, this should not matter. // We lose a month in -13000 and a few months in +17000, this should not matter.
return ((jd > -3027188.25 ) && (jd < 7930056.87916)); return ((jd > -3027188.25 ) && (jd < 7930056.87916));
} }
bool jd_fits_de430(const double jd) bool EphemWrapper::jd_fits_de430(const double jd)
{ {
//return !(jd < 2287184.5 || jd > 2688974.5); //return !(jd < 2287184.5 || jd > 2688974.5);
//return !(jd < 2287184.5 || jd > 2688976.5); //return !(jd < 2287184.5 || jd > 2688976.5);
return ((jd > 2287184.5) && (jd < 2688976.5)); return ((jd > 2287184.5) && (jd < 2688976.5));
} }
bool use_de430(const double jd) bool use_de430(const double jd)
{ {
return StelApp::getInstance().getCore()->de430IsActive() && jd_fits_ de430(jd); return StelApp::getInstance().getCore()->de430IsActive() && EphemWra pper::jd_fits_de430(jd);
} }
bool use_de431(const double jd) bool use_de431(const double jd)
{ {
return StelApp::getInstance().getCore()->de431IsActive() && jd_fits_ de431(jd); return StelApp::getInstance().getCore()->de431IsActive() && EphemWra pper::jd_fits_de431(jd);
} }
// planet_id is ONLY one of the #defined values 0..8 above. // planet_id is ONLY one of the #defined values 0..8 above.
void get_planet_helio_coordsv(const double jd, double xyz[3], const int pla net_id) void get_planet_helio_coordsv(const double jd, double xyz[3], const int pla net_id)
{ {
bool deOk=false; bool deOk=false;
if(!std::isfinite(jd)) if(!std::isfinite(jd))
{ {
qDebug() << "get_planet_helio_coordsv(): SKIPPED CoordCalc, jd is infinite/nan: " << jd; qDebug() << "get_planet_helio_coordsv(): SKIPPED CoordCalc, jd is infinite/nan: " << jd;
return; return;
 End of changes. 4 change blocks. 
4 lines changed or deleted 4 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/