Skip to content

Commit

Permalink
Solved minor runtime issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaulzc committed Nov 7, 2024
1 parent 57361b5 commit 370780c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/misc.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1679,11 +1679,11 @@ subroutine Hilbert_transform(fx, Hfx)
Hfx(nfx) = 0.0_r64

! Both Hfx and fx follow 1-indexing system unlike the paper
do k = 1, nfx-1 ! Run over the internal points
do k = 1, nfx-2 ! Run over the internal points
term2 = 0.0_r64 ! 2nd term in Bilato Eq. 4
term3 = 0.0_r64 ! 3rd term in Bilato Eq. 4

do n = 1, nfx-1-k ! Partial sum over internal points
do n = 1, nfx-2-k ! Partial sum over internal points
b = log((n + 1.0_r64)/n)
term2 = term2 - (1.0_r64 - (n + 1.0_r64)*b)*fx(k + n + 1) + &
(1.0_r64 - n*b)*fx(k + n + 2)
Expand Down

0 comments on commit 370780c

Please sign in to comment.