solstice-solver

Solver library of the solstice app
git clone git://git.meso-star.com/solstice-solver.git
Log | Files | Refs | README | LICENSE

commit 4fb4fd4f192c1d1a977b092a60c3776715b086ae
parent 3ccc2432d3179d05535786e1d2bc210288c4c153
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 27 Sep 2017 11:14:26 +0200

Fix a comparison

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

diff --git a/src/ssol_ranst_sun_dir.c b/src/ssol_ranst_sun_dir.c @@ -245,7 +245,7 @@ ran_pillbox_get double pt[3]; double phi, sin2_theta, sin_theta, cos_theta; - ASSERT(ran && 0 <= ran->state.pillbox.sin2_theta_max >= 0 + ASSERT(ran && 0 <= ran->state.pillbox.sin2_theta_max && ran->state.pillbox.sin2_theta_max <= 1); sin2_theta = ssp_rng_uniform_double(rng, 0, ran->state.pillbox.sin2_theta_max); sin_theta = sqrt(sin2_theta);