star-line

Structure for accelerating line importance sampling
git clone git://git.meso-star.fr/star-line.git
Log | Files | Refs | README | LICENSE

commit fd5159b020732f736e032e46e90e2ca93a0178f3
parent ee44fcaeb1e02efb5b4f9705d56a220f73cc2fcb
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed,  4 Feb 2026 16:18:29 +0100

Correction of checks on the mixture loading function

Input argument checks were incorrect.

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

diff --git a/src/sln_mixture.c b/src/sln_mixture.c @@ -51,7 +51,7 @@ struct sln_mixture { static INLINE res_T check_sln_mixture_load_args(const struct sln_mixture_load_args* args) { - if(!args || args->filename) return RES_BAD_ARG; + if(!args || !args->filename) return RES_BAD_ARG; if(!args->molparam) return RES_BAD_ARG; return RES_OK; }