summaryrefslogtreecommitdiff
path: root/lib/afc9.f90
diff options
context:
space:
mode:
Diffstat (limited to 'lib/afc9.f90')
-rw-r--r--lib/afc9.f908
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/afc9.f90 b/lib/afc9.f90
index 44323738..dd106aa4 100644
--- a/lib/afc9.f90
+++ b/lib/afc9.f90
@@ -1,7 +1,8 @@
subroutine afc9(c3a,npts,fsample,a,syncpk)
- complex c3a(0:npts-1)
- complex c3(0:1360-1)
+ parameter (NZ2=1512)
+ complex c3a(0:NZ2-1)
+ complex c3(0:NZ2-1)
real a(3),deltaa(3)
a(1)=0. !f0
@@ -53,13 +54,14 @@ subroutine afc9(c3a,npts,fsample,a,syncpk)
enddo
if(a(3).ne.a3) call shft(c3a,a(3),a3,c3)
chisqr=fchisq(c3,npts,fsample,a)
+! write(*,4000) 0,0,a,-chisqr
if(chisqr/chisqr0.gt.0.99) exit
chisqr0=chisqr
enddo
syncpk=-chisqr
c3a=c3
-! write(*,4001) a,-chisq2
+! write(*,4001) a,syncpk
!4001 format(3x,3f10.4,f11.3)
return