Remove references to nfast in symspec.f90.

This commit is contained in:
Joe Taylor 2023-12-04 12:49:17 -05:00
parent d8570e6817
commit c02b977c94

View File

@ -26,7 +26,6 @@ subroutine symspec(k,ndiskdat,nb,nbslider,nfsample, &
data rms/999.0/,k0/99999999/,nadjx/0/,nadjy/0/ data rms/999.0/,k0/99999999/,nadjx/0/,nadjy/0/
save save
nfast=1
if(k.gt.5751000) go to 999 if(k.gt.5751000) go to 999
if(k.lt.NFFT) then if(k.lt.NFFT) then
ihsym=0 ihsym=0
@ -37,8 +36,7 @@ subroutine symspec(k,ndiskdat,nb,nbslider,nfsample, &
w2a=0. w2a=0.
w2b=0. w2b=0.
do i=1,NFFT do i=1,NFFT
w(i)=(sin(i*pi/NFFT))**2 !Window for nfast=1 w(i)=(sin(i*pi/NFFT))**2 !Window
if(i.lt.17833) w2a(i)=(sin(i*pi/17832.925))**2 !Window a for nfast=2
j=i-8916 j=i-8916
if(j.gt.0 .and. j.lt.17833) w2b(i)=(sin(j*pi/17832.925))**2 ! b if(j.gt.0 .and. j.lt.17833) w2b(i)=(sin(j*pi/17832.925))**2 ! b
enddo enddo
@ -112,20 +110,9 @@ subroutine symspec(k,ndiskdat,nb,nbslider,nfsample, &
cx00=cx cx00=cx
do mm=1,nfast
ihsym=ihsym+1 ihsym=ihsym+1
if(nfast.eq.1) then
cx=w*cx00 !Apply window for 2nd forward FFT cx=w*cx00 !Apply window for 2nd forward FFT
else
if(mm.eq.1) then
cx=w2a*cx00
else
cx=w2b*cx00
endif
endif
call four2a(cx,NFFT,1,1,1) !Second forward FFT (X) call four2a(cx,NFFT,1,1,1) !Second forward FFT (X)
n=min(322,ihsym) n=min(322,ihsym)
do i=1,NFFT do i=1,NFFT
sx=real(cx(i))**2 + aimag(cx(i))**2 sx=real(cx(i))**2 + aimag(cx(i))**2
@ -133,10 +120,11 @@ subroutine symspec(k,ndiskdat,nb,nbslider,nfsample, &
savg(i)=savg(i) + sx savg(i)=savg(i) + sx
ssz5a(i)=sx ssz5a(i)=sx
enddo enddo
enddo
nkhz=nint(1000.d0*(fcenter-int(fcenter))) nkhz=nint(1000.d0*(fcenter-int(fcenter)))
if(fcenter.eq.0.d0) nkhz=125 if(fcenter.eq.0.d0) nkhz=125
! write(*,3001) hsym,ts,ja,jb,ihsym
!3001 format(2f12.3,3i10)
999 return 999 return
end subroutine symspec end subroutine symspec