From d63dd8d081a6fcd0715cd13f26df59fb831769d2 Mon Sep 17 00:00:00 2001 From: "Iain R. Learmonth" Date: Sun, 18 Oct 2015 18:51:00 +0100 Subject: Imported Upstream version 1.5.0 --- lib/twkfreq.f90 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lib/twkfreq.f90') 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 -- cgit v1.2.3