star-line

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

commit 042966b1fc26e52e61b6e2a9c96f0393e852694b
parent 747763389e93ad86e368517a1defb2b3cce01d75
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu,  5 Feb 2026 15:13:37 +0100

Fix the check of isotope abundances in the mixture

The molecule was reset before its isotopic abundances were verified, so
they were not verified since, by default, a molecule uses its default
isotopes defined in the metadata.

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

diff --git a/src/sln_mixture.c b/src/sln_mixture.c @@ -97,7 +97,6 @@ flush_molecule ASSERT(mixture && molecule); mixture->molecules[mixture->nmolecules++] = *molecule; - *molecule = MOLECULE_NULL; /* Check isotope abundances */ if(molecule->param.non_default_isotope_abundances) { @@ -118,6 +117,8 @@ flush_molecule } } + *molecule = MOLECULE_NULL; + exit: return res; error: