rnatm

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

commit a34d6b16d15303755bf904c5bc9e27c484af75ad
parent 63c7cad7dc5b2215d0f6e826beecb5990f738e3d
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri,  4 Nov 2022 12:39:08 +0100

Remove k_<min|max> of rnatm_sample_component input arguments

Diffstat:
Msrc/rnatm.h | 6+-----
Msrc/rnatm_properties.c | 4----
2 files changed, 1 insertion(+), 9 deletions(-)

diff --git a/src/rnatm.h b/src/rnatm.h @@ -128,13 +128,9 @@ struct rnatm_sample_component_args { enum rnatm_radcoef radcoef; double r; /* Random number uniformaly distributed in [0, 1[ */ - - /* For debug: check that the retrieved radcoef is in [k_min, k_max] */ - double k_min; - double k_max; }; #define RNATM_SAMPLE_COMPONENT_ARGS_NULL__ { \ - {0,0,0}, 0, 0, RNATM_RADCOEFS_COUNT__, 0, -DBL_MAX, DBL_MAX \ + {0,0,0}, 0, 0, RNATM_RADCOEFS_COUNT__, 0 \ } static const struct rnatm_sample_component_args RNATM_SAMPLE_COMPONENT_ARGS_NULL = RNATM_SAMPLE_COMPONENT_ARGS_NULL__; diff --git a/src/rnatm_properties.c b/src/rnatm_properties.c @@ -101,10 +101,6 @@ check_rnatm_sample_component_args if(args->r < 0 || args->r >= 1) return RES_BAD_ARG; - /* Invalid K range */ - if(args->k_min > args->k_max) - return RES_BAD_ARG; - return RES_OK; }