star-cem

Compute the position of the sun
git clone git://git.meso-star.fr/star-cem.git
Log | Files | Refs | README | LICENSE

commit 73ba2001efa3bb7577037015ec14963ab7ab7176
parent 450b65536509b53738bde76bab0cca845756a721
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed,  8 Oct 2025 12:48:25 +0200

Fix an overzealous assert

Diffstat:
Msrc/scem_psa.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/scem_psa.c b/src/scem_psa.c @@ -60,7 +60,7 @@ sun_pos_ecliptic_coords(const double jd, struct ecliptic_coords* ecliptic) double omega=0; double t=0; - ASSERT(jd >= 2451545.0 && ecliptic); + ASSERT(jd >= 0 && ecliptic); t = (jd - 2451545.0); omega = 2.1429 - 0.0010394594*t;