testDeltaT.cpp   testDeltaT.cpp
skipping to change at line 305 skipping to change at line 305
data << 700 << 66; data << 700 << 66;
data << 800 << 55; data << 800 << 55;
data << 900 << 45; data << 900 << 45;
data << 1000 << 35; data << 1000 << 35;
data << 1100 << 27; data << 1100 << 27;
data << 1200 << 20; data << 1200 << 20;
data << 1300 << 14; data << 1300 << 14;
data << 1400 << 9; data << 1400 << 9;
data << 1500 << 5; data << 1500 << 5;
data << 1600 << 2; data << 1600 << 2;
/*
* WTF?! FIXME: Should be Stephenson & Morrison (1984) give zero val
ue outside of range?
data << 1700 << 0; data << 1700 << 0;
data << 1800 << 0; data << 1800 << 0;
data << 1980 << 1; data << 1980 << 1;
data << 2075 << 4; data << 2075 << 4;
data << 2200 << 8; data << 2200 << 8;
data << 2300 << 13; data << 2300 << 13;
data << 2400 << 19; data << 2400 << 19;
data << 2500 << 26; data << 2500 << 26;
data << 2600 << 34; data << 2600 << 34;
data << 2700 << 43; data << 2700 << 43;
data << 2800 << 53; data << 2800 << 53;
data << 2900 << 64; data << 2900 << 64;
data << 3000 << 76; data << 3000 << 76;
*/
while(data.count() >= 2) while(data.count() >= 2)
{ {
int year = data.takeFirst().toInt(); int year = data.takeFirst().toInt();
int yout, mout, dout; int yout, mout, dout;
double JD; double JD;
double expectedResult = data.takeFirst().toDouble(); double expectedResult = data.takeFirst().toDouble();
StelUtils::getJDFromDate(&JD, year, 1, 1, 0, 0, 0); StelUtils::getJDFromDate(&JD, year, 1, 1, 0, 0, 0);
double result = StelUtils::getDeltaTByStephensonMorrison1984 (JD)/60.0; double result = StelUtils::getDeltaTByStephensonMorrison1984 (JD)/60.0;
StelUtils::getDateFromJulianDay(JD, &yout, &mout, &dout); StelUtils::getDateFromJulianDay(JD, &yout, &mout, &dout);
End of changes. 2 change blocks.
0 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/