summaryrefslogtreecommitdiff
path: root/qmap/libqmap/q65c.f90
diff options
context:
space:
mode:
authortony mancill <tmancill@debian.org>2023-09-03 19:46:43 -0700
committertony mancill <tmancill@debian.org>2023-09-03 19:46:43 -0700
commit393a486ee1d7e308a49f8e0b8c3a4b2f43223248 (patch)
tree6a6e8a56ace360795e1cf1a310d5652bb23f1386 /qmap/libqmap/q65c.f90
parent6a285ab382ebff18c88e52bec75dc1773ac33b74 (diff)
New upstream version 2.7.0~rc2+repackupstream/2.7.0_rc2+repack
Diffstat (limited to 'qmap/libqmap/q65c.f90')
-rwxr-xr-xqmap/libqmap/q65c.f9051
1 files changed, 51 insertions, 0 deletions
diff --git a/qmap/libqmap/q65c.f90 b/qmap/libqmap/q65c.f90
new file mode 100755
index 00000000..e2ac8cc1
--- /dev/null
+++ b/qmap/libqmap/q65c.f90
@@ -0,0 +1,51 @@
+subroutine q65c(itimer)
+
+ use timer_module, only: timer
+ use timer_impl, only: fini_timer !, limtrace
+ use, intrinsic :: iso_c_binding, only: C_NULL_CHAR
+ use FFTW3
+ use q65
+ use q65_decode
+
+ parameter (NFFT=32768)
+ include 'njunk.f90'
+ real*8 fcenter
+ integer nparams0(NJUNK+3),nparams(NJUNK+3)
+ logical first
+ character*12 mycall,hiscall
+ character*6 mygrid,hisgrid
+ character*20 datetime
+
+ common/datcom2/dd(2,5760000),ss(322,NFFT),savg(NFFT),nparams0
+
+!### REMEMBER that /npar/ is not updated until nparams=nparams0 is executed. ###
+ common/npar/fcenter,nutc,fselected,mousedf,mousefqso,nagain, &
+ ndepth,ndiskdat,neme,newdat,nfcal,nfshift, &
+ mcall3,nkeep,ntol,nxant,nrxlog,nfsample,nxpol,nmode, &
+ ndop00,nsave,max_nhsym,mycall,mygrid,hiscall,hisgrid, &
+ datetime,junk1,junk2
+ equivalence (nparams,fcenter)
+ data first/.true./
+ save first
+
+ nparams=nparams0 !Copy parameters into common/npar/
+ if(itimer.ne.0) then
+ call timer('decode0 ',101)
+ call fini_timer
+ return
+ endif
+
+ datetime(18:20)=':00'
+ npatience=1
+ newdat=1 !Always on ??
+
+! write(*,3001) 'aa',newdat,nagain,nfa,nfb,ntol,fselected
+!3001 format(a2,5i6,f10.3)
+! write(*,3001) 'bb',newdat,nagain,nfa,nfb,ntol,fselected
+
+ call timer('decode0 ',0)
+ call decode0(dd,ss,savg)
+ call timer('decode0 ',1)
+
+ return
+end subroutine q65c