Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fix for EMPairProduction when haveElectrons=False and small Optimizations #491

Merged
merged 3 commits into from
Jun 4, 2024

Conversation

LeanderSchlegel
Copy link
Member

Dear all,

@lukasmerten , @JulienDoerner and me discussed a possible fix of #488 and thought of opening this very small PR.
We switched the order of the lines in EMPairProduction.cpp that in the current master-version would prevent the catastrophic energy loss of the pairproduction in the case of haveElectrons=False.
We also noticed two very small optimizations that could be done in EMDoublePairProduction.cpp and EMInverseComptonScattering.cpp that we included in this PR, that do not affect the physics and could lead to a little speedup in the runtime of the modules.

Thank you in advance!

@LeanderSchlegel LeanderSchlegel linked an issue Jun 3, 2024 that may be closed by this pull request
@rafaelab rafaelab merged commit dc3299b into CRPropa:master Jun 4, 2024
3 of 4 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.

Question regarding deactivation of candidate in EMPairProduction
2 participants