mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-07-31 13:12:30 -04:00
Better protection of edge values of ccf array indexes.
This commit is contained in:
parent
161f456101
commit
12bda0f84e
@ -34,12 +34,12 @@ subroutine sfox_sync(crcvd,fsample,isync,f,t)
|
|||||||
|
|
||||||
pmax=0.
|
pmax=0.
|
||||||
ntol=100
|
ntol=100
|
||||||
iz=nint(ntol/df)+2
|
iz=nint(ntol/df)
|
||||||
i0=nint(1500.0/df)
|
i0=nint(1500.0/df)
|
||||||
ipk=-999
|
ipk=-999
|
||||||
jpk=-999
|
jpk=-999
|
||||||
jz=nsz-8*NS
|
jz=nsz-8*NS
|
||||||
allocate(ccf(-iz:iz,1:jz))
|
allocate(ccf(-iz-1:iz+1,1:jz))
|
||||||
ccf=0.
|
ccf=0.
|
||||||
do j=1,jz
|
do j=1,jz
|
||||||
do i=-iz,iz
|
do i=-iz,iz
|
||||||
|
Loading…
x
Reference in New Issue
Block a user