commit 35154726da267e5b5561960e1107787d5e48bd59
parent eec4c24bdd38deb05bfb86e4e926f0b1f0b90095
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 6 Feb 2026 15:09:23 +0100
Fix an issue with the isotope abundance test
The test was simply reversed: it checked that the sum of the abundances
of the isotopes in a molecule was *not* equal to 1.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sln_tree.c b/src/sln_tree.c
@@ -88,7 +88,7 @@ check_molecule_isotope_abundances
}
/* ... and that their sum equals 1 */
- if(eq_eps(sum, 1, 1e-6)) {
+ if(!eq_eps(sum, 1, 1e-6)) {
ERROR(sln, "%s: the %s isotope abundances does not sum to 1: %g.\n",
caller, shtr_molecule_cstr(i), sum);
return RES_BAD_ARG;