summaryrefslogtreecommitdiff
path: root/lib/afc9.f90
diff options
context:
space:
mode:
authorhibby <d@vehibberd.com>2018-02-16 15:17:14 +0000
committerhibby <d@vehibberd.com>2018-02-16 15:17:14 +0000
commit37f727ac0746fd85504aa46c1f023c09b3eff33a (patch)
treec8a7ce04545040a8f161ba279528730bd9a3e6ab /lib/afc9.f90
parentd63dd8d081a6fcd0715cd13f26df59fb831769d2 (diff)
New upstream version 1.8.0+repackupstream/1.8.0+repack
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