commit f9643c804ce1724c3bf87ce4962123bfe7480443
parent 52c5da379d321af88dd860e9eeb76834df71c48d
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Tue, 19 Sep 2017 12:18:14 +0200
Change the russian roulette period. This is not supposed to be a bug fix.
Moved code changing the period to the correct if/else branch.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ssol_solver.c b/src/ssol_solver.c
@@ -1033,10 +1033,10 @@ trace_radiative_path
double p = ssp_rng_canonical(thread_ctx->rng);
if(p > 0.5) {
pt.survivor_score += 1; /* This path survived once more */
+ roulette_interval = typical_max_depth;
} else {
cancel_mc(thread_ctx, irealisation);
killed_by_roulette = 1;
- roulette_interval = typical_max_depth;
goto exit; /* break is not enough */
}
}