diff options
| author | Christoph Berg <myon@debian.org> | 2025-09-16 12:37:12 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-09-16 12:57:29 +0200 |
| commit | 5a4967c577ad245a2117b7b2f71c13b1212fe285 (patch) | |
| tree | 4d09343cfe757239895a0dd9b399242d2a07d7c2 /qmap/libqmap/cfom.f90 | |
| parent | 23c903a09fb1d73fd20b50323cd80cfb3aba8799 (diff) | |
Merge 2.7 changes, I had uploaded -1 from the wrong branch.debian/3.0.0_rc1+repack-2
Diffstat (limited to 'qmap/libqmap/cfom.f90')
| -rwxr-xr-x | qmap/libqmap/cfom.f90 | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/qmap/libqmap/cfom.f90 b/qmap/libqmap/cfom.f90 index e58f005b..986a39dc 100755 --- a/qmap/libqmap/cfom.f90 +++ b/qmap/libqmap/cfom.f90 @@ -1,40 +1,40 @@ -subroutine cfom(dd,k0,k,ndop0) - - parameter(NMAX=60*96000) - real dd(2,NMAX) - complex*16 w,wstep - complex*8 c - real*8 twopi,dphi - logical first - data first/.true./ - save twopi,w,first - - if(first) then - twopi=8.d0*atan(1.d0) - w=1.d0 - first=.false. - endif - - dop0=0.5*ndop0 - dphi=dop0*twopi/96000.0 - wstep=cmplx(cos(dphi),sin(dphi)) - - do j=k0+1,k - c=w*cmplx(dd(1,j),dd(2,j)) - dd(1,j)=real(c) - dd(2,j)=aimag(c) - w=w*wstep - enddo - - return -end subroutine cfom - -subroutine zaptx(dd,k0,k) - - parameter(NMAX=60*96000) - real dd(2,NMAX) - - dd(1:2,k0+1:k)=0. - - return -end subroutine zaptx +subroutine cfom(dd,k0,k,ndop0)
+
+ parameter(NMAX=60*96000)
+ real dd(2,NMAX)
+ complex*16 w,wstep
+ complex*8 c
+ real*8 twopi,dphi
+ logical first
+ data first/.true./
+ save twopi,w,first
+
+ if(first) then
+ twopi=8.d0*atan(1.d0)
+ w=1.d0
+ first=.false.
+ endif
+
+ dop0=0.5*ndop0
+ dphi=dop0*twopi/96000.0
+ wstep=cmplx(cos(dphi),sin(dphi))
+
+ do j=k0+1,k
+ c=w*cmplx(dd(1,j),dd(2,j))
+ dd(1,j)=real(c)
+ dd(2,j)=aimag(c)
+ w=w*wstep
+ enddo
+
+ return
+end subroutine cfom
+
+subroutine zaptx(dd,k0,k)
+
+ parameter(NMAX=60*96000)
+ real dd(2,NMAX)
+
+ dd(1:2,k0+1:k)=0.
+
+ return
+end subroutine zaptx
|
