Skip to content

Commit

Permalink
critical bug fix changing indexes starting from 0 to 1 [which caused,…
Browse files Browse the repository at this point in the history
… naturally, random segfaults]
  • Loading branch information
dnarayanan committed Aug 21, 2023
1 parent a31bd0c commit ac54b35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/grid/grid_propagate_3d.f90
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,11 @@ subroutine grid_integrate_noenergy(p,tau_required,tau_achieved)

integer :: id
integer :: idx
real, dimension(d(0)%n_nu) :: energy_frequency_bins
real, dimension(d(1)%n_nu) :: energy_frequency_bins

do id=1,d(0)%n_nu
energy_frequency_bins(id) = d(0)%nu(id)
print *,'[grid_propagate_3d last iteration] energy_frequency_bins(id) = ',energy_frequency_bins(id)
do id=1,d(1)%n_nu
energy_frequency_bins(id) = d(1)%nu(id)
!print *,'[grid_propagate_3d last iteration] energy_frequency_bins(id) = ',energy_frequency_bins(id)
end do

radial = (p%r .dot. p%v) > 0.
Expand Down

0 comments on commit ac54b35

Please sign in to comment.