Skip to content

Simple housekeeping for Parameters#496

Merged
evaneschneider merged 5 commits intocholla-hydro:devfrom
mabruzzo:Parameter-Housekeeping
Apr 15, 2026
Merged

Simple housekeeping for Parameters#496
evaneschneider merged 5 commits intocholla-hydro:devfrom
mabruzzo:Parameter-Housekeeping

Conversation

@mabruzzo
Copy link
Copy Markdown
Collaborator

This does some basic house-keeping for the Parameters struct.

Essentially, this PR:

  • adds a docstring to Parameters (explaining how its being phased out)
  • brings the docstring up to date for Parse_Params
  • adds an explanatory comment when we call Parse_Params
  • deletes some unused parameters from Parameters
    • These include n_hydro, n_particle, n_projection, ...
    • essentially, I had forgotten to modify the Parameters struct each time I started directly reading these values from pmap within the constructor of WriterManager.

Comment thread src/global/global.h
Comment on lines +189 to +194
* \note
* Before removing a parameter from this type, check if that parameter is parsed
* within \ref Old_Style_Parse_Param. PRs 489, 493, 494, and 495 seek to remove all
* of the parameters from that function. Thus, you may want to merge in the work from
* the branch where the parameter parsing logic has been moved **BEFORE** you start to
* relocate logic. (Otherwise, you are going to encounter some merge conflicts)
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I know that the enumerated PRs are all less than 496. After creating this PR, I went and re-ordered the commits. The new order of review is 496 (first) -> 489 -> 493 -> 494 -> 495 (last).

Aside: In each of the enumerated PRs, I made a point of updating this comment (e.g. #489 drops the mention of PR 489, #493 drops the reference to 493, #494 drops the reference to 494, and the remainder of the comment is dropped in #495)

@mabruzzo
Copy link
Copy Markdown
Collaborator Author

@evaneschneider, of all the pending PRs, this is probably the one I would like to see merged first

@evaneschneider evaneschneider merged commit 53677be into cholla-hydro:dev Apr 15, 2026
15 checks passed
@mabruzzo mabruzzo deleted the Parameter-Housekeeping branch April 15, 2026 18:18
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