htrdr

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

commit 32d231f97abea09e0aac1feb0e2361f3e45411cd
parent 6b7b7f694ab21eadd020cd432a8112c36bb317d9
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu, 20 Feb 2025 14:42:12 +0100

planets: fix spectral sampling for volumic radiative budget

The sampled wavelength was always equal to 0.

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

diff --git a/src/planets/htrdr_planets_solve_volrad_budget.c b/src/planets/htrdr_planets_solve_volrad_budget.c @@ -77,7 +77,7 @@ spectral_sampling break; default: FATAL("Unreachable code\n"); break; } - wlen[0] = wlen[1]; + wlen[1] = wlen[0]; /* Find the band the wavelength belongs to */ RNATM(find_bands(cmd->atmosphere, wlen, iband_range));