Fix bugs in gen_ft8wave.f90.

This commit is contained in:
Steve Franke 2019-02-21 15:56:21 -06:00
parent 9425bd4d37
commit d9c99601ae

View File

@ -7,16 +7,12 @@ subroutine gen_ft8wave(itone,nsym,nsps,fsample,f0,cwave,nwave)
real wave(nwave)
complex cwave(nwave)
real pulse(5760)
real dphi(0:(nsym+2)*nint(fsample)-1)
real dphi(0:(nsym+2)*nsps-1)
integer itone(nsym)
logical first
data first/.true./
save pulse,first,twopi,dt,hmod
if(nsave .gt. MAX_SECONDS*nint(fsample)) then
print*,"gen_ft8wave: ERROR - waveform length too large."
endif
if(first) then
twopi=8.0*atan(1.0)
dt=1.0/fsample