Eliminate some redundant candidates.

This commit is contained in:
Joe Taylor 2021-02-01 14:23:49 -05:00
parent 72a4158898
commit 34cb4c502d

View File

@ -447,7 +447,9 @@ subroutine q65_ccf_22(s1,iz,jz,nfqso,ipk,jpk,f0,xdt,ccf2)
i=indx(jzz-j+1)+i1-1
if(ccf2(i).lt.3.0) exit
f=i*df
if(f.ge.(nfqso-ftol) .and. f.le.(nfqso+ftol)) cycle
if(f.ge.(nfqso-ftol) .and. f.le.(nfqso+ftol)) cycle
biggest=maxval(ccf2(i-3:i+3))
if(ccf2(i).ne.biggest) cycle
ncand=ncand+1
candidates(ncand,1)=ccf2(i)
candidates(ncand,2)=xdt2(i)