rnatm

Load and structure data describing an atmosphere
git clone git://git.meso-star.fr/rnatm.git
Log | Files | Refs | README | LICENSE

commit fb6a34a50f758e2ca3b86bdfd48017b784f5e2aa
parent 38f28c8ef7a969e4b043ddddc2fef848fcefe615
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed,  2 Jul 2025 16:01:51 +0200

Correction of Kmin calculation

The octree was recording the minimum of the radiative coefficients of
all its components, whereas it should be recording the minimum of the
mixture.

Diffstat:
Msrc/rnatm_voxel.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/rnatm_voxel.h b/src/rnatm_voxel.h @@ -74,8 +74,8 @@ voxel_accum(float* dst, const float* src) dst[ka_max] += src[ka_max]; dst[ks_max] += src[ks_max]; - dst[ka_min] = MMIN(dst[ka_min], src[ka_min]); - dst[ks_min] = MMIN(dst[ks_min], src[ks_min]); + dst[ka_min] += src[ka_min]; + dst[ks_min] += src[ks_min]; } #endif /* RNATM_VOXEL_H */