Skip to content

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

Open
mabruzzo wants to merge 7 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 7 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
@mabruzzo
mabruzzo force-pushed the ncc/grain_species_info_class branch from 6a8bdfb to 8b5e324 Compare August 12, 2026 22:19
@mabruzzo
mabruzzo force-pushed the ncc/grain_species_info_class branch from 8b5e324 to 6e154be Compare August 16, 2026 13:25
@brittonsmith
brittonsmith changed the base branch from newchem-cpp to main August 20, 2026 12:15
@brittonsmith
brittonsmith changed the base branch from main to newchem-cpp August 20, 2026 12:15
@brittonsmith

Copy link
Copy Markdown
Contributor

@mabruzzo can you resolve these merger conflicts? I had a quick look at it wasn't obvious to me.

@mabruzzo

Copy link
Copy Markdown
Collaborator Author

This merge conflict is quite something. I'll try to dig into it

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.

2 participants