Skip to content

factor out scale_fields_dust#41

Closed
mabruzzo wants to merge 734 commits into
brittonsmith:gen2024from
mabruzzo:gen2024transcribe/scale_fields_dust
Closed

factor out scale_fields_dust#41
mabruzzo wants to merge 734 commits into
brittonsmith:gen2024from
mabruzzo:gen2024transcribe/scale_fields_dust

Conversation

@mabruzzo

@mabruzzo mabruzzo commented Mar 3, 2025

Copy link
Copy Markdown

This builds on #40


This factors out some the logic from calc_tdust_3d for scaling densities from comoving form to "proper" form (and back again). This consists of 3 parts:

  1. I renamed the file that already held scale_fields_table (so that the new function could be put into the files)
  2. I actually factored out the function
  3. I did a little cleanup of calc_tdust_3d.

All in all, this is pretty simple. This PR probably changes the precise answer of the answer-tests (I converted had to convert a division to multiplication by an inverse). In other words, the answers drift a tiny, nominal amount (but they all still pass)

I confirmed that all tests pass

@mabruzzo mabruzzo mentioned this pull request Mar 3, 2025
@mabruzzo mabruzzo changed the base branch from master to gen2024 March 3, 2025 19:34
brittonsmith and others added 28 commits May 21, 2025 15:57
…sting-without-editable-install

Support running subset of pygrackle test without a an editable install
…tweak

cython does not need to be a runtime-dependency
…nstruction-tweaks

Pygrackle test instruction tweaks
…Warnings

Enable Compiler Warnings in a CI job
…lding_length_fix

H2 self shielding length scale factor fix
Superficial Website Documentation Tweaks
[newchem-cpp] Minor model test refactor and adding model comparison option
brittonsmith and others added 23 commits August 13, 2025 14:18
…e/internal_types_updates

[newchem-cpp] internal scratch-buffer interface update
…e/Implement-SpLUT-with-XMacros

[newchem-cpp] Refactor such that SpLUT is implemented with XMacros
…e/SpeciesLUTFieldAdaptor

[newchem-cpp] Introduce `SpeciesLutFieldAdaptor`
The *Great Renaming:* `gracklepy` edition
…e/initial-step_rate_newton_raphson

[newchem-cpp] initial transcription of `step_rate_newton_raphson`
…' into gen2024transcribe/lookup_cool_rates0d
…2024transcribe/calc_temp_cloudy_g

I needed to introduce the bugfix from PR grackle-project#367.
@mabruzzo

Copy link
Copy Markdown
Author

superseded by grackle-project#386

@mabruzzo mabruzzo closed this Aug 20, 2025
@mabruzzo mabruzzo deleted the gen2024transcribe/scale_fields_dust branch September 12, 2025 18:34
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.

3 participants