diff options
| author | Christoph Berg <myon@debian.org> | 2025-09-15 23:04:33 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-09-15 23:04:33 +0200 |
| commit | e1c678ef00f0159bbeb5571e5ebb0d4697121334 (patch) | |
| tree | 6547edef81a62a812a4d0f64e03fda226b5f0a7e /lib/spec64.f90 | |
| parent | b9daa22c4c3ad51cd4bc0ef624a19f21d01c9305 (diff) | |
| parent | 0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (diff) | |
Update upstream source from tag 'upstream/3.0.0_rc1+repack'
Update to upstream version '3.0.0~rc1+repack'
with Debian dir 68c212e23136fecf9ebc6f12ff355579224d27ee
Diffstat (limited to 'lib/spec64.f90')
| -rwxr-xr-x | lib/spec64.f90 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/spec64.f90 b/lib/spec64.f90 index 1839b340..7a269923 100755 --- a/lib/spec64.f90 +++ b/lib/spec64.f90 @@ -1,7 +1,7 @@ subroutine spec64(c0,npts,nsps,mode_q65,jpk,s3,LL,NN)
parameter (MAXFFT=20736)
- complex c0(0:npts-1) !Complex spectrum of dd()
+ complex c0(0:npts-1) !Complex spectrum of dd()
complex cs(0:MAXFFT-1) !Complex symbol spectrum
real s3(LL,NN) !Synchronized symbol spectra
real xbase0(LL),xbase(LL)
@@ -24,7 +24,8 @@ subroutine spec64(c0,npts,nsps,mode_q65,jpk,s3,LL,NN) if(jb.gt.npts-1) jb=npts-1
nz=jb-ja
cs(0:nz)=c0(ja:jb)
- if(nz.lt.nfft-1) cs(nz+1:)=0.
+! if(nz.lt.nfft-1) cs(nz+1:)=0.
+ if(nz.lt.nfft-1 .and. nz.ge.0) cs(nz+1:)=0. !Avoid a potential bounds error with Q65-15 EME
call four2a(cs,nsps,1,-1,1) !c2c FFT to frequency
do ii=1,LL
i=ii-65+mode_q65 !mode_q65 = 1 2 4 8 16 for Q65 A B C D E
|
