rnatm

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

commit 18aa04ddff2f68ad1f5b3ccef79967f68c499383
parent a9871fee9cafad8dc0b1c07163af56dc5b7d8625
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 31 Aug 2022 14:18:04 +0200

Fix the calculation of band indices to be taken into account

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

diff --git a/src/rnatm_octree.c b/src/rnatm_octree.c @@ -278,7 +278,7 @@ find_band_range } bands[0] = ilow; - bands[1] = iupp; /* Make the boundary inclusive */ + bands[1] = MMIN(iupp, nbands-1); /* Make the boundary inclusive */ if(bands[0] > bands[1]) { log_err(atm,