Skip to content

[newchem-cpp] Convert GrainSpeciesInfo to be a class - #577

Open
mabruzzo wants to merge 28 commits into
grackle-project:newchem-cppfrom
mabruzzo:ncc/grain_species_info_class
Open

[newchem-cpp] Convert GrainSpeciesInfo to be a class#577
mabruzzo wants to merge 28 commits into
grackle-project:newchem-cppfrom
mabruzzo:ncc/grain_species_info_class

Conversation

@mabruzzo

Copy link
Copy Markdown
Collaborator

To be reviewed after #562 is merged

If you prefer, I could rebase this branch off of newchem-cpp instead, if you would prefer.


This PR converts GrainSpeciesInfo from a struct with a bunch of associated functions that act like methods to a C++ class. This is very straight-forward.

The impetus for doing this were some challenges I encountered while trying to rebase the work in PR #551 atop of PR #562. While doing that, the linter was having lots of trouble with understanding the initialization strategy (it mistakenly assumed certain variables weren't assumed). This change was made to help resolve that issue (plus its probably the right thing for us to do)

@mabruzzo
mabruzzo changed the base branch from main to newchem-cpp August 12, 2026 16:51
This is inadvisable, but will be necessary to achieve reasonable
performance in step_rate_newton_raphson
@mabruzzo
mabruzzo force-pushed the ncc/grain_species_info_class branch from 6a8bdfb to 8b5e324 Compare August 12, 2026 22:19
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.

1 participant