mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-08-03 06:32:26 -04:00
Protect against a bounds error when no input data.
This commit is contained in:
parent
b25ef318a4
commit
3d04c767ca
@ -425,9 +425,13 @@ subroutine q65_ccf_85(s1,iz,jz,nfqso,ia,ia2,ipk,jpk,f0,xdt,imsg_best, &
|
|||||||
endif
|
endif
|
||||||
best(imsg)=ccfmax
|
best(imsg)=ccfmax
|
||||||
enddo ! imsg
|
enddo ! imsg
|
||||||
|
|
||||||
deallocate(ccf)
|
deallocate(ccf)
|
||||||
best(imsg_best)=0.
|
better=0.
|
||||||
better=ccf_best/maxval(best)
|
if(imsg_best.gt.0) then
|
||||||
|
best(imsg_best)=0.
|
||||||
|
better=ccf_best/maxval(best)
|
||||||
|
endif
|
||||||
|
|
||||||
return
|
return
|
||||||
end subroutine q65_ccf_85
|
end subroutine q65_ccf_85
|
||||||
|
Loading…
x
Reference in New Issue
Block a user