htrdr

Solving radiative transfer in heterogeneous media
git clone git://git.meso-star.fr/htrdr.git
Log | Files | Refs | README | LICENSE

commit 90a494ae2f2f669b95e74acc3e45afb1abc808c4
parent 4ce0870c91aeca3b9555e4a5a102edff6c53c9e8
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu, 22 Apr 2021 13:01:17 +0200

Fix assertions in combustion_compute_radiance_sw

Diffstat:
Msrc/combustion/htrdr_combustion_compute_radiance_sw.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/combustion/htrdr_combustion_compute_radiance_sw.c b/src/combustion/htrdr_combustion_compute_radiance_sw.c @@ -576,11 +576,11 @@ laser_once_scattered range[0] = range_in[0]; range[1] = range_in[1]; htrdr_combustion_laser_trace_ray(cmd->laser, pos, dir, range, laser_hit_dst); - ASSERT(laser_hit_dst[0] <= laser_hit_dst[1]); - ASSERT(laser_hit_dst[1] <= range_in[1]); /* No intersection with the laser sheet => no laser contribution */ if(HTRDR_COMBUSTION_LASER_HIT_NONE(laser_hit_dst)) return 0; + ASSERT(laser_hit_dst[0] <= laser_hit_dst[1]); + ASSERT(laser_hit_dst[1] <= range_in[1]); /* Compute the transmissivity from 'pos' to 'xin' */ range[0] = 0;