mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-05-24 08:45:55 -04:00
I edited the wrong astronomy.c last time. Oops.
This commit is contained in:
@@ -372,10 +372,12 @@ astro_vector_t Astronomy_GeoVector(astro_body_t body, astro_time_t time)
|
||||
if (vector.status != ASTRO_SUCCESS)
|
||||
return vector;
|
||||
|
||||
ltime2 = Astronomy_AddDays(ltime, -Astronomy_VectorLength(vector) / C_AUDAY);
|
||||
ltime2 = Astronomy_AddDays(time, -Astronomy_VectorLength(vector) / C_AUDAY);
|
||||
dt = fabs(ltime2.tt - ltime.tt);
|
||||
if (dt < 1.0e-9)
|
||||
return vector;
|
||||
|
||||
ltime = ltime2;
|
||||
}
|
||||
vector.status = ASTRO_NO_CONVERGE; /* light travel time solver did not converge */
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user