htrdr

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

commit e061886c779cb87765feea38c5024380895fb67d
parent 90a494ae2f2f669b95e74acc3e45afb1abc808c4
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu, 22 Apr 2021 15:07:46 +0200

Fix the move_to_scattering_position function

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

diff --git a/src/combustion/htrdr_combustion_compute_radiance_sw.c b/src/combustion/htrdr_combustion_compute_radiance_sw.c @@ -779,7 +779,7 @@ move_to_scattering_position if(sc_type == SCATTERING_AT_SURFACE || cmd->geom == NULL) { out_pos[0] = pos[0] + dir[0] * sc_distance; out_pos[1] = pos[1] + dir[1] * sc_distance; - out_pos[2] = pos[2] + dir[1] * sc_distance; + out_pos[2] = pos[2] + dir[2] * sc_distance; /* The scattering position is in a volume surrounded by the geometry of the * combustion chamber. Be careful when moving along 'dir'; due to numerical