diff options
| author | Christoph Berg <myon@debian.org> | 2026-10-09 14:12:35 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-10-09 14:12:35 +0200 |
| commit | ffc62c792c9a5196cb4ce7a353287dfe20db6524 (patch) | |
| tree | 1269efa852935b183daae4bb33a58d1b4d2ffb53 /lib/xcor.f90 | |
| parent | 059831534c7e884f0a607ed86b582fd00d821731 (diff) | |
New upstream version 3.3.0~beta1+dfsgupstream/3.3.0_beta1+dfsg
Diffstat (limited to 'lib/xcor.f90')
| -rw-r--r-- | lib/xcor.f90 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/xcor.f90 b/lib/xcor.f90 index 84273b85..9895e5f1 100644 --- a/lib/xcor.f90 +++ b/lib/xcor.f90 @@ -9,13 +9,14 @@ subroutine xcor(ipk,nsteps,nsym,lag1,lag2,ccf,ccf0,lagpk,flip,fdot,nrobust) use jt65_mod parameter (NHMAX=3413) !Max length of power spectra parameter (NSMAX=552) !Max number of quarter-symbol steps - real ss(NSMAX,NHMAX) !2d spectrum, stepped by half-symbols real a(NSMAX) ! real ccf(-44:118) real ccf(lag1:lag2) ! save - common/sync/ss + call ensure_jt65_workspace() + if(.not.allocated(jt65_work%spectra)) allocate(jt65_work%spectra(552,3413)) + associate(ss=>jt65_work%spectra) df=12000.0/8192. ! dtstep=0.5/df dtstep=0.25/df @@ -73,5 +74,6 @@ subroutine xcor(ipk,nsteps,nsym,lag1,lag2,ccf,ccf0,lagpk,flip,fdot,nrobust) flip=-1.0 endif + end associate return end subroutine xcor |
