solstice-solver

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

commit 95659ffe274e1922538b0920f2c227fe1485f07b
parent 6c7dbcf887e86590d67a379b6f392287189cd6b3
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 11 Jan 2019 15:05:34 +0100

Relax an assertion

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

diff --git a/src/ssol_solver.c b/src/ssol_solver.c @@ -1086,7 +1086,7 @@ trace_radiative_path #undef ACCUM_WEIGHT /* Check conservation of energy at the realisation level */ - ASSERT((double)depth*DBL_EPSILON*pt.initial_flux >= fabs(pt.energy_loss)); + ASSERT(((double)depth*DBL_EPSILON*10)*pt.initial_flux >= fabs(pt.energy_loss)); /* this realisation accounts for many that where canceled */ if(pt.survivor_score) {