diff options
Diffstat (limited to 'lib/twkfreq.f90')
| -rw-r--r-- | lib/twkfreq.f90 | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/twkfreq.f90 b/lib/twkfreq.f90 index 0a9b34d2..7c240d52 100644 --- a/lib/twkfreq.f90 +++ b/lib/twkfreq.f90 @@ -13,13 +13,11 @@ subroutine twkfreq(c3,c4,npts,fsample,a) s=2.0/npts
do i=1,npts
x=s*(i-x0)
- if(mod(i,100).eq.1) then
- p2=1.5*x*x - 0.5
+ p2=1.5*x*x - 0.5
! p3=2.5*(x**3) - 1.5*x
! p4=4.375*(x**4) - 3.75*(x**2) + 0.375
- dphi=(a(1) + x*a(2) + p2*a(3)) * (twopi/fsample)
- wstep=cmplx(cos(dphi),sin(dphi))
- endif
+ dphi=(a(1) + x*a(2) + p2*a(3)) * (twopi/fsample)
+ wstep=cmplx(cos(dphi),sin(dphi))
w=w*wstep
c4(i)=w*c3(i)
enddo
|
