diff options
| author | Christoph Berg <myon@debian.org> | 2025-09-15 23:04:23 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-09-15 23:04:23 +0200 |
| commit | 0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (patch) | |
| tree | d702795f99ac38e0cc17e25f0f7e50fa3e05baf9 /lib/mixlpf.f90 | |
| parent | 310d05acf2c9233f7e336ae7dd9ffb7b54ca4e62 (diff) | |
New upstream version 3.0.0~rc1+repackupstream/3.0.0_rc1+repack
Diffstat (limited to 'lib/mixlpf.f90')
| -rwxr-xr-x | lib/mixlpf.f90 | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/lib/mixlpf.f90 b/lib/mixlpf.f90 index cd775ab8..1e7319f2 100755 --- a/lib/mixlpf.f90 +++ b/lib/mixlpf.f90 @@ -1,25 +1,25 @@ -subroutine mixlpf(x1,nbfo,c0) - - real*4 x1(512) - real*8 twopi,phi,dphi - complex c1(512),c2(105+512) - complex c0(64) - data phi/0.d0/ - save phi,c2 - - twopi=8.d0*atan(1.d0) - dphi=twopi*nbfo/12000.d0 - - do i=1,512 - phi=phi+dphi - if(phi.gt.twopi) phi=phi-twopi - xphi=phi - c1(i)=x1(i)*cmplx(cos(xphi),sin(xphi)) - enddo - c2(106:105+512)=c1 - - call fil3c(c2,105+512,c0,n2) - c2(1:105)=c1(512-104:512) !Save 105 trailing samples - - return -end subroutine mixlpf +subroutine mixlpf(x1,nbfo,c0)
+
+ real*4 x1(512)
+ real*8 twopi,phi,dphi
+ complex c1(512),c2(105+512)
+ complex c0(64)
+ data phi/0.d0/
+ save phi,c2
+
+ twopi=8.d0*atan(1.d0)
+ dphi=twopi*nbfo/12000.d0
+
+ do i=1,512
+ phi=phi+dphi
+ if(phi.gt.twopi) phi=phi-twopi
+ xphi=phi
+ c1(i)=x1(i)*cmplx(cos(xphi),sin(xphi))
+ enddo
+ c2(106:105+512)=c1
+
+ call fil3c(c2,105+512,c0,n2)
+ c2(1:105)=c1(512-104:512) !Save 105 trailing samples
+
+ return
+end subroutine mixlpf
|
