summaryrefslogtreecommitdiff
path: root/lib/peakdt9.f90
diff options
context:
space:
mode:
authorhibby <d@vehibberd.com>2018-02-16 15:17:14 +0000
committerhibby <d@vehibberd.com>2018-02-16 15:17:14 +0000
commit37f727ac0746fd85504aa46c1f023c09b3eff33a (patch)
treec8a7ce04545040a8f161ba279528730bd9a3e6ab /lib/peakdt9.f90
parentd63dd8d081a6fcd0715cd13f26df59fb831769d2 (diff)
New upstream version 1.8.0+repackupstream/1.8.0+repack
Diffstat (limited to 'lib/peakdt9.f90')
-rw-r--r--lib/peakdt9.f9016
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/peakdt9.f90 b/lib/peakdt9.f90
index eac256ef..946d4534 100644
--- a/lib/peakdt9.f90
+++ b/lib/peakdt9.f90
@@ -1,14 +1,15 @@
-subroutine peakdt9(c2,nz2,nsps8,nspsd,c3,nz3,xdt)
+subroutine peakdt9(c2,nsps8,nspsd,c3,xdt)
- complex c2(0:4096-1)
- complex c3(0:4096-1)
+ parameter (NZ2=1512,NZ3=1360)
+ complex c2(0:NZ2-1)
+ complex c3(0:NZ3-1)
complex z
real p(0:3300)
include 'jt9sync.f90'
p=0.
- i0=5*nspsd
- do i=0,nz2-1
+ i0=5*nspsd
+ do i=0,NZ2-1
z=1.e-3*sum(c2(max(i-(nspsd-1),0):i))
p(i0+i)=real(z)**2 + aimag(z)**2 !Integrated symbol power at freq=0
enddo
@@ -40,10 +41,9 @@ subroutine peakdt9(c2,nz2,nsps8,nspsd,c3,nz3,xdt)
xdt=(lagpk-lag0)*dtlag
- nz3=nspsd*85
- do i=0,nz3-1
+ do i=0,NZ3-1
j=i+lagpk-i0-nspsd+1
- if(j.ge.0 .and. j.le.nz2) then
+ if(j.ge.0 .and. j.lt.NZ2) then
c3(i)=c2(j)
else
c3(i)=0.