summaryrefslogtreecommitdiff
path: root/lib/ft4/gen_ft4wave.f90
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ft4/gen_ft4wave.f90')
-rw-r--r--lib/ft4/gen_ft4wave.f904
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ft4/gen_ft4wave.f90 b/lib/ft4/gen_ft4wave.f90
index 13018242..885c690b 100644
--- a/lib/ft4/gen_ft4wave.f90
+++ b/lib/ft4/gen_ft4wave.f90
@@ -3,12 +3,14 @@ subroutine gen_ft4wave(itone,nsym,nsps,fsample,f0,cwave,wave,icmplx,nwave)
real wave(nwave)
complex cwave(nwave)
real pulse(6912) !576*4*3
- real dphi(0:250000-1)
+ real, allocatable :: dphi(:)
integer itone(nsym)
logical first
data first/.true./
save pulse,first,twopi,dt,hmod
+ allocate(dphi(0:(nsym+2)*nsps-1))
+
if(first) then
twopi=8.0*atan(1.0)
dt=1.0/fsample