Skip to content

[newchem-cpp] introduce temporary InjectPathFieldPack type#463

Merged
brittonsmith merged 7 commits into
grackle-project:newchem-cppfrom
mabruzzo:ncc/InjPathFieldPack
Feb 27, 2026
Merged

[newchem-cpp] introduce temporary InjectPathFieldPack type#463
brittonsmith merged 7 commits into
grackle-project:newchem-cppfrom
mabruzzo:ncc/InjPathFieldPack

Conversation

@mabruzzo

@mabruzzo mabruzzo commented Dec 10, 2025

Copy link
Copy Markdown
Collaborator

This PR should be reviewed after #447 has been merged.


This PR introduces the temporary InjectPathFieldPack type. Essentially, this type holds pointers to the various injection pathway fields in the order that is implicitly assumed throughout the codebase. This change helps simplify make_consistent and it will also simplify calc_grain_size_increment_1d (once transcribed).

For some context, PR #480 will remove the temporary InjectPathFieldPack type.

Essentially, this type holds pointers to the various injection pathway
fields in the order that is implicitly assumed throughout the codebase.
This change helps simplify make_consistent and it will also simplify
`calc_grain_size_increment_1d` (once transcribed). Longer term, I have a
plan that will let use dispose of this ``InjectPathFieldPack`` type
(but, we need to make a few changes before we get to that).
Introduce the start_idx and stop_idx members to the struct
Use the start_idx and stop_idx members to simplify make_consistent
@mabruzzo mabruzzo added the refactor internal reorganization or code simplification with no behavior changes label Dec 10, 2025
@brittonsmith brittonsmith changed the base branch from newchem-cpp to main February 24, 2026 13:54
@brittonsmith brittonsmith changed the base branch from main to newchem-cpp February 24, 2026 13:55
@brittonsmith brittonsmith merged commit f3b778f into grackle-project:newchem-cpp Feb 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor internal reorganization or code simplification with no behavior changes

Projects

Development

Successfully merging this pull request may close these issues.

2 participants