Skip to content

Commit

Permalink
Merge pull request #10 from cemitch99/patch-1
Browse files Browse the repository at this point in the history
Update RFcoef.f90 to fix second derivative
  • Loading branch information
qianglbl authored May 16, 2024
2 parents 53f1a97 + 1c8f922 commit 2693f75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utilities/RFcoef.f90
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ program rfcoef
Fcoef2(j)*sin((j-1)*2*pi*zz/zlen)
tmpsump = tmpsump-(j-1)*2*pi*Fcoef(j)*sin((j-1)*2*pi*zz/zlen)/zlen +&
(j-1)*2*pi*Fcoef2(j)*cos((j-1)*2*pi*zz/zlen)/zlen
tmpsumpp = tmpsumpp-((j-1)*2*pi*Fcoef(j)/zlen)**2*cos((j-1)*2*pi*zz/zlen) -&
((j-1)*2*pi*Fcoef2(j)/zlen)**2*sin((j-1)*2*pi*zz/zlen)
tmpsumpp = tmpsumpp-((j-1)*2*pi/zlen)**2*Fcoef(j)*cos((j-1)*2*pi*zz/zlen) -&
((j-1)*2*pi/zlen)**2*Fcoef2(j)*sin((j-1)*2*pi*zz/zlen)
enddo
write(8,*)zdata(i),tmpsum,tmpsump,tmpsumpp
enddo
Expand Down

0 comments on commit 2693f75

Please sign in to comment.