Skip to content

allow screening routine to output log(screening)#1939

Merged
zingale merged 7 commits intoAMReX-Astro:developmentfrom
zhichen3:log_screen
Feb 16, 2026
Merged

allow screening routine to output log(screening)#1939
zingale merged 7 commits intoAMReX-Astro:developmentfrom
zhichen3:log_screen

Conversation

@zhichen3
Copy link
Collaborator

@zhichen3 zhichen3 commented Feb 3, 2026

let screening routines to return h instead of exp(h). This is mainly group log(screen) term with log(rates) so that we reduce the number of exp calls. It is needed for pynucastro/pynucastro#1259

enable_chabrier1998_quantum_corr bool 0
enable_debye_huckel_skip bool 0
debye_huckel_skip_threshold real 1.01e0
debye_huckel_skip_threshold real 1.0e-3
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't this be std::log(1.01) ~ 1.e-2?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, you're right -- I was bad at counting zeros. Fixed

@zingale zingale merged commit f030dab into AMReX-Astro:development Feb 16, 2026
34 checks passed
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