commit c3bf78521b30dc6bbea14fdb3d04083ee352e8bd
parent 7502c4a90dc8c6fd338746fbc7df8b442771c85c
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 21 Nov 2016 16:10:37 +0100
Disable the medium absorption code path if ka is 0
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sgf_realisation.h b/src/sgf_realisation.h
@@ -269,7 +269,7 @@ GEBHART_RADIATIVE_PATH
sXd_scene_trace_ray(sXd_scn, pos, dir, range, &prim_from, &hit);
/* Handle medium absorption */
- if(absorption_coef >= 0) {
+ if(absorption_coef > 0) {
if(SXD_HIT_NONE(&hit)) { /* The ray shoulnd't be outside the volume */
log_error(dev,
"The radiative random walk goes to the infinity while the submitted geometry \n"