Skip to content

Commit

Permalink
Continuous photon emission: Fix truncated line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisArran committed Feb 26, 2024
1 parent 2d09d72 commit f1a1ad6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion epoch1d/src/physics_packages/photons.F90
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,8 @@ SUBROUTINE generate_photon(generating_electron, iphoton, eta)
! This will only create photons that have energies above a user specified
! cutoff and if photon generation is turned on. E+/- recoil is always
! considered
IF (photon_energy > photon_energy_min .AND. produce_photons .AND. samp_photon) THEN
IF (photon_energy > photon_energy_min .AND. produce_photons &
.AND. samp_photon) THEN
IF (photon_energy < c_tiny) photon_energy = c_tiny

CALL create_particle(new_photon)
Expand Down
3 changes: 2 additions & 1 deletion epoch2d/src/physics_packages/photons.F90
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,8 @@ SUBROUTINE generate_photon(generating_electron, iphoton, eta)
! This will only create photons that have energies above a user specified
! cutoff and if photon generation is turned on. E+/- recoil is always
! considered
IF (photon_energy > photon_energy_min .AND. produce_photons .AND. samp_photon) THEN
IF (photon_energy > photon_energy_min .AND. produce_photons &
.AND. samp_photon) THEN
IF (photon_energy < c_tiny) photon_energy = c_tiny

CALL create_particle(new_photon)
Expand Down
3 changes: 2 additions & 1 deletion epoch3d/src/physics_packages/photons.F90
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,8 @@ SUBROUTINE generate_photon(generating_electron, iphoton, eta)
! This will only create photons that have energies above a user specified
! cutoff and if photon generation is turned on. E+/- recoil is always
! considered
IF (photon_energy > photon_energy_min .AND. produce_photons .AND. samp_photon) THEN
IF (photon_energy > photon_energy_min .AND. produce_photons &
.AND. samp_photon) THEN
IF (photon_energy < c_tiny) photon_energy = c_tiny

CALL create_particle(new_photon)
Expand Down

0 comments on commit f1a1ad6

Please sign in to comment.