summaryrefslogtreecommitdiff
path: root/lib/symspec.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2021-02-03 22:54:50 +0100
committerChristoph Berg <myon@debian.org>2021-02-03 22:54:50 +0100
commit1c4a8c9374cacfc002e47c8e3bb824e82aa8441c (patch)
tree13b31e80d276b67cca79f8077efbba2ad3863f34 /lib/symspec.f90
parent3209ca0e2d4243c861c3d1d6022ba1da4f9f2fc8 (diff)
New upstream version 2.4.0~rc1+repackupstream/2.4.0_rc1+repack
Diffstat (limited to 'lib/symspec.f90')
-rw-r--r--lib/symspec.f9034
1 files changed, 33 insertions, 1 deletions
diff --git a/lib/symspec.f90 b/lib/symspec.f90
index a3bed192..707a6368 100644
--- a/lib/symspec.f90
+++ b/lib/symspec.f90
@@ -37,7 +37,7 @@ subroutine symspec(shared_data,k,TRperiod,nsps,ingain,bLowSidelobes, &
equivalence (xc,cx)
save
- if(TRperiod.lt.0.d0) stop !Silence compiler warning
+ if(TRperiod+npct.eq.-999.9) stop !Silence compiler warning
nfft3=16384 !df=12000.0/16384 = 0.732422
jstep=nsps/2 !Step size = half-symbol in id2()
if(k.gt.NMAX) go to 900
@@ -126,3 +126,35 @@ subroutine symspec(shared_data,k,TRperiod,nsps,ingain,bLowSidelobes, &
return
end subroutine symspec
+
+subroutine chk_samples(ihsym,k,nstop)
+
+ integer*8 count0,count1,clkfreq
+ integer itime(8)
+ real*8 dtime,fsample
+ character*12 ctime
+ data count0/-1/,k0/99999999/,maxhsym/0/
+ save count0,k0,maxhsym
+
+ if(k.lt.k0 .or. count0.eq.-1) then
+ call system_clock(count0,clkfreq)
+ maxhsym=0
+ endif
+ if((mod(ihsym,100).eq.0 .or. ihsym.ge.nstop-100) .and. &
+ k0.ne.99999999) then
+ call system_clock(count1,clkfreq)
+ dtime=dfloat(count1-count0)/dfloat(clkfreq)
+ if(dtime.lt.28.0) return
+ if(dtime.gt.1.d-6) fsample=(k-3456)/dtime
+ call date_and_time(values=itime)
+ sec=itime(7)+0.001*itime(8)
+ write(ctime,3000) itime(5)-itime(4)/60,itime(6),sec
+3000 format(i2.2,':',i2.2,':',f6.3)
+ write(33,3033) ctime,dtime,ihsym,nstop,k,fsample
+3033 format(a12,f12.6,2i7,i10,f15.3)
+ flush(33)
+ endif
+ k0=k
+
+ return
+end subroutine chk_samples