summaryrefslogtreecommitdiff
path: root/qmap/libqmap/fftbig.f90
diff options
context:
space:
mode:
authorhibby <d@vehibberd.com>2026-10-06 21:24:40 +0100
committerhibby <d@vehibberd.com>2026-10-06 21:24:40 +0100
commitc25cbdf6fb6d946175f4335fab77bfea601b56db (patch)
tree6f7a94b7b81f999e434f61b73d47e337dfd26bf2 /qmap/libqmap/fftbig.f90
parent71f5689252c9f13e70e1c24856904475b2307809 (diff)
parent0685fcada9f95fe90f70b387cd7d757da8209624 (diff)
Merge tag 'debian/3.2.0_rc1+dfsg-2' into debian/trixie-backportsdebian/trixie-backports
tagging wsjtx 3.2.0~rc1+dfsg-2
Diffstat (limited to 'qmap/libqmap/fftbig.f90')
-rw-r--r--qmap/libqmap/fftbig.f908
1 files changed, 5 insertions, 3 deletions
diff --git a/qmap/libqmap/fftbig.f90 b/qmap/libqmap/fftbig.f90
index 085fd39f..5fc2af6e 100644
--- a/qmap/libqmap/fftbig.f90
+++ b/qmap/libqmap/fftbig.f90
@@ -6,13 +6,12 @@ subroutine fftbig(dd,nmax)
use FFTW3
use timer_module, only: timer
+ use cacb_mod, only: ca, init_cacb, free_cacb
parameter (MAXFFT1=5376000)
real*4 dd(2,nmax) !Input data
- complex ca(MAXFFT1) !FFT of input
real*8 df
type(C_PTR) :: plan1 !Pointer to FFTW plan
logical first
- common/cacb/ca
equivalence (rfilt,cfilt)
data first/.true./,npatience/0/
save
@@ -20,6 +19,7 @@ subroutine fftbig(dd,nmax)
if(nmax.lt.0) go to 900
nfft1=MAXFFT1
+ call init_cacb(nfft1)
if(first) then
nflags=FFTW_ESTIMATE
if(npatience.eq.1) nflags=FFTW_ESTIMATE_PATIENT
@@ -50,7 +50,9 @@ subroutine fftbig(dd,nmax)
call timer('FFTbig ',1)
go to 999
-900 call fftwf_destroy_plan(plan1)
+900 if(.not.first) call fftwf_destroy_plan(plan1)
+ call free_cacb()
+ first=.true.
999 return
end subroutine fftbig