Skip to content

Conversation

@trisyoungs
Copy link
Member

@trisyoungs trisyoungs commented Jan 22, 2026

Builds on #2297 - Do not merge until #2297 is resolved.

This PR simplifies the handling of per-Species Isotopologue information by merging together the IsotopologueSet and Isotopologues classes and removing the latter.

…aph in code but pause for the isotopologue problem.
@trisyoungs trisyoungs changed the base branch from develop2 to dissolve2/gr-unit-test January 22, 2026 14:27
@trisyoungs trisyoungs force-pushed the dissolve2/simplify-isotopologues branch from 0ae6d90 to 8dabc3c Compare January 22, 2026 14:30
@trisyoungs trisyoungs force-pushed the dissolve2/simplify-isotopologues branch from 8dabc3c to 7143759 Compare January 22, 2026 15:34
@trisyoungs trisyoungs force-pushed the dissolve2/simplify-isotopologues branch from 7143759 to 3c6c601 Compare January 23, 2026 14:54
void PartialSet::resolve(const std::map<std::string, const Species *> &speciesInScope)
{
for (auto &[resolvableSpecies, y] : realSpeciesPopulations_)
for (auto &resolvableSpecies : std::views::keys(realSpeciesPopulations_))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice use of views

Comment on lines +91 to +109
// // Calculate neutron weights matrix
// void NeutronSQNode::calculateWeights(const KeyedVector<const Species *, double> &realSpeciesPopulations)
// {
// weights_.clear();
//
// // Add simple isotopologues
// for (const auto &[species, _] : realSpeciesPopulations)
// {
// for (const auto &isotopologue : species->isotopologues())
// {
// auto iso = isotopologue.get();
// auto it = namedWeights_.find(iso->name());
// if (it != namedWeights_.end())
// weights_.addIsotopologue(species, 1.0, iso, it->second);
// }
// }
//
// weights_.createFromIsotopologues(exchangeable_);
// }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we just delete this code?

Base automatically changed from dissolve2/gr-unit-test to develop2 January 28, 2026 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants