Skip to content

[newchem-cpp] initial transcription of step_rate_newton_raphson#374

Merged
brittonsmith merged 7 commits into
grackle-project:newchem-cppfrom
mabruzzo:gen2024transcribe/initial-step_rate_newton_raphson
Aug 15, 2025
Merged

[newchem-cpp] initial transcription of step_rate_newton_raphson#374
brittonsmith merged 7 commits into
grackle-project:newchem-cppfrom
mabruzzo:gen2024transcribe/initial-step_rate_newton_raphson

Conversation

@mabruzzo

Copy link
Copy Markdown
Collaborator

This PR was originally proposed as brittonsmith#29


This PR must be reviewed after #354 is merged


This is the initial attempt at transcribing step_rate_newton_raphson. This is pretty bare bones and a lot of cleanup will be done in followup PRs

(the goal was to make this PR relatively small and easy to review)

As noted in a prior commit (89ac828),
`comp1` and `comp2` have historically been passed as arguments to the
`cool1d_multi_g` Fortran subroutine, but it turns out that they are
only used internally within `cool1d_multi_g` as local variable (the
values of the arguments are immediately overwritten).

This Commit:
- modifies `lookup_cool_rates0d` such that `comp1` and `comp2` are no
  longer in the argument list. (They are still declared as local
  variables and passed as arguments to `cool1d_multi_g` -- modifying
  `cool1d_multi_g` is a task for the future)
- removes `comp1` and `comp2` entirely from `step_rate_newton_raphson`
- adjusts the function declarations of `step_rate_newton_raphson` and
  `lookup_cool_rates0d` in fortran_func_decl.h accordingly
This commit was accomplished with some search-and-replace commands
within vim
@mabruzzo mabruzzo added the refactor internal reorganization or code simplification with no behavior changes label Aug 13, 2025
@mabruzzo mabruzzo moved this to Awaiting Review in New Chemistry and C++ Transcription Aug 13, 2025
@mabruzzo mabruzzo changed the title initial transcription of step_rate_newton_raphson [newchem-cpp] initial transcription of step_rate_newton_raphson Aug 13, 2025
@mabruzzo mabruzzo changed the base branch from newchem-cpp to main August 13, 2025 13:37
@mabruzzo mabruzzo changed the base branch from main to newchem-cpp August 13, 2025 13:37
@brittonsmith brittonsmith merged commit bb8e3f7 into grackle-project:newchem-cpp Aug 15, 2025
5 checks passed
@github-project-automation github-project-automation Bot moved this from Awaiting Review to Done in New Chemistry and C++ Transcription Aug 15, 2025
@mabruzzo mabruzzo deleted the gen2024transcribe/initial-step_rate_newton_raphson branch August 19, 2025 19:58
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