Skip to content

Commit

Permalink
Fix the sign of the photon energy
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgrote committed Jan 20, 2025
1 parent f9756fd commit 7a91252
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,8 @@ public:
amrex::ParticleReal const KE_after = m_e_eV*gbp1sq_prime/(1.0_prt + gammap1_prime);

// update energy lost to bremsstrahlung
amrex::ParticleReal const deltaE_eV = KE_after - KE_before;
/* m_deltaE_bremsstrahlung -= deltaE_eV*weight1*PhysConst::q_e; // Joules */
amrex::ParticleReal const deltaE_eV = KE_before - KE_after;
/* m_deltaE_bremsstrahlung += deltaE_eV*weight1*PhysConst::q_e; // Joules */

if (m_create_photons) {
// compute photon energy in lab frame
Expand Down

0 comments on commit 7a91252

Please sign in to comment.