star-line

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

commit add72438e0eca575751d1cca1f027c9171ce36c8
parent 35b543f3fbd7d5858fbc169c4095ae2a4fd52303
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu,  5 Feb 2026 15:35:16 +0100

Check the parsing of parasitic data in the mixture

Diffstat:
Msrc/test_sln_mixture.c | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/test_sln_mixture.c b/src/test_sln_mixture.c @@ -244,6 +244,14 @@ test_invalid_molecule CHK(sln_mixture_load(sln, &args, &mixture) == RES_OK); CHK(sln_mixture_ref_put(mixture) == RES_OK); + /* Additional text is questionable, but still acceptable + * (a warning message should be displayed) */ + RESET; + CHK(fprintf(fp, "H2O 0.3 25 dummy text 3.14\n#") > 0); + rewind(fp); + CHK(sln_mixture_load(sln, &args, &mixture) == RES_OK); + CHK(sln_mixture_ref_put(mixture) == RES_OK); + #undef RESET CHK(fclose(fp) == 0);