Skip to content

Commit 124ab4e

Browse files
committed
Fix a bug for 2*pi
1 parent 0418b0d commit 124ab4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/radbg.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ subroutine radbg(Ido,Ip,l1,Idl1,Cc,c1,c2,Ch,Ch2,Wa)
88
ipph , is , j , j2 , jc , k , l , l1 , lc , nbd
99
dimension Ch(Ido,l1,Ip) , Cc(Ido,Ip,l1) , c1(Ido,l1,Ip) , &
1010
c2(Idl1,Ip) , Ch2(Idl1,Ip) , Wa(*)
11-
real(rk),parameter :: tpi = acos(-1.0_rk) / 2.0_rk ! 2 * pi
11+
real(rk),parameter :: tpi = 2*acos(-1.0_rk) ! 2 * pi
1212
arg = tpi/real(Ip, rk)
1313
dcp = cos(arg)
1414
dsp = sin(arg)

0 commit comments

Comments
 (0)