Skip to content

[newchem-cpp] calc_temp_cloudy: Refactor to call basic_gas_props#531

Open
mabruzzo wants to merge 60 commits into
grackle-project:newchem-cppfrom
mabruzzo:ncc/calculate_temperature-basic_gas_props
Open

[newchem-cpp] calc_temp_cloudy: Refactor to call basic_gas_props#531
mabruzzo wants to merge 60 commits into
grackle-project:newchem-cppfrom
mabruzzo:ncc/calculate_temperature-basic_gas_props

Conversation

@mabruzzo
Copy link
Copy Markdown
Collaborator

@mabruzzo mabruzzo commented Apr 17, 2026

To be reviewed after #543 has been merged.


This is a simple single PR that follows up on #529 (and #533 and #543).

There are 2 commits:

  1. Call basic_gas_props within calc_temp_cloudy_g
  2. Move calc_temp_cloudy_g into calculate_temperature.cpp (and rename it so that its now called calc_temp_cloudy

With a little refactoring, we refactor calc_temp_cloudy so that it functions for both primordial_chemistry==0 and primordial_chemistry>0

@mabruzzo mabruzzo force-pushed the ncc/calculate_temperature-basic_gas_props branch from 9dacb73 to 2fa76b8 Compare April 17, 2026 18:20
mabruzzo added 27 commits April 19, 2026 09:40
This switches to using GRIMPL_NAMESPACE_DECL and puts all the helper
function into the namespace
The result is definitely not bitwise identical, but that's not going to
make tests fail (since the logic is not tested)
@mabruzzo mabruzzo force-pushed the ncc/calculate_temperature-basic_gas_props branch from da72511 to 44776f8 Compare April 19, 2026 14:11
@mabruzzo mabruzzo changed the title [newchem-cpp] calc_temp_cloudy_g: Refactor to call basic_gas_props [newchem-cpp] calc_temp_cloudy: Refactor to call basic_gas_props Apr 19, 2026
@mabruzzo mabruzzo force-pushed the ncc/calculate_temperature-basic_gas_props branch from 44776f8 to b635cf7 Compare April 19, 2026 15:51
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