diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-04-27 12:26:36 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-04-27 12:26:36 +0100 |
| commit | 92bc165d4773fd349c819f0e003141bc6deffd2e (patch) | |
| tree | 4f85e7df3439fd3460ca8f355266f0e5409497a2 /qmap/libqmap/cfom.f90 | |
| parent | b3177e837e5875f91766ee84ee6a14127509e7fe (diff) | |
| parent | 93f7198f9c2864ef9630cc0cc9e46d6cc1933aa9 (diff) | |
Update upstream source from tag 'upstream/2.7.0_rc4+repack'
Update to upstream version '2.7.0~rc4+repack'
with Debian dir 44013c61dd790a48f294ea090087c1fb373ab33f
Diffstat (limited to 'qmap/libqmap/cfom.f90')
| -rwxr-xr-x | qmap/libqmap/cfom.f90 | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/qmap/libqmap/cfom.f90 b/qmap/libqmap/cfom.f90 new file mode 100755 index 00000000..986a39dc --- /dev/null +++ b/qmap/libqmap/cfom.f90 @@ -0,0 +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
|
