Skip to content

Linear Breit-Wheeler: use amrex::Math::powi and _prt literals - #7191

Merged
EZoni merged 1 commit into
BLAST-WarpX:developmentfrom
EZoni:lbw_followup_split
Aug 25, 2026
Merged

Linear Breit-Wheeler: use amrex::Math::powi and _prt literals#7191
EZoni merged 1 commit into
BLAST-WarpX:developmentfrom
EZoni:lbw_followup_split

Conversation

@EZoni

@EZoni EZoni commented Aug 24, 2026

Copy link
Copy Markdown
Member

Summary

Small refactor of the linear Breit-Wheeler cross-section and utility headers split from #6141, to keep that PR as focused as possible.

Replaces the local pow2/pow4 lambdas with amrex::Math::powi<N>, and the auxiliary one_half_pr/one_pr constants with the 0.5_prt/1._prt literals.

There should be no change in behavior and no benchmark updates.

@EZoni
EZoni requested review from RemiLehe and WeiqunZhang August 24, 2026 21:45
@EZoni EZoni added cleaning Clean code, improve readability component: collisions Anything related to particle collisions labels Aug 24, 2026
@EZoni

EZoni commented Aug 24, 2026

Copy link
Copy Markdown
Member Author

@WeiqunZhang @atmyers

Do you see any floating point precision issue that I may be overlooking with these changes?

@EZoni
EZoni requested a review from atmyers August 25, 2026 18:37
@EZoni
EZoni merged commit d479b8d into BLAST-WarpX:development Aug 25, 2026
51 checks passed
@EZoni
EZoni deleted the lbw_followup_split branch August 25, 2026 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleaning Clean code, improve readability component: collisions Anything related to particle collisions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants