commit 5152414998fcb4296e7d6e5d197f832c790ca540
parent b83dc26dc577763bf2c472e8666c398f7916eed1
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 14 Nov 2022 17:06:30 +0100
Fix wrong removal of aerosols
Aerosols were eliminated even if their contribution was not zero on the
given spectral range
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/rnatm_properties.c b/src/rnatm_properties.c
@@ -770,8 +770,8 @@ remove_useless_aerosols(struct rnatm* atm)
/* Compact the aerosols to consider */
if(i != n) {
aerosol_copy_and_release(aerosols+n, aerosols+i);
- ++n;
}
+ ++n;
}
if(!n) {