summaryrefslogtreecommitdiff
path: root/lib/ccf2.f90
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ccf2.f90')
-rw-r--r--lib/ccf2.f902
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ccf2.f90 b/lib/ccf2.f90
index 8e1f6cf4..c84fc240 100644
--- a/lib/ccf2.f90
+++ b/lib/ccf2.f90
@@ -41,7 +41,7 @@ subroutine ccf2(ss,nz,nflip,ccfbest,xlagpk)
xlagpk=lagpk
endif
enddo
- if( lagpk.gt.-LAGMAX .and. lagpk.lt.LAGMAX) then
+ if( lagpk.gt.LAGMIN .and. lagpk.lt.LAGMAX) then
call peakup(ccf(lagpk-1),ccf(lagpk),ccf(lagpk+1),dx)
xlagpk=lagpk+dx
endif