diff options
| author | Christoph Berg <myon@debian.org> | 2026-06-22 12:03:55 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-06-22 12:03:55 +0200 |
| commit | de18fc13175a5bf0e2b48a042d2fc06e87c88d24 (patch) | |
| tree | f517074cd603d30eb7ba7e2122d38051e4c1439c /qmap/libqmap/fftbig.f90 | |
| parent | b76e8361909e47f0937d4a64a5a4cb5939f51eb7 (diff) | |
| parent | d83a420f0517d7fc47aeb288a6a0cf4891784fcc (diff) | |
Update upstream source from tag 'upstream/3.0.2+dfsg'
Update to upstream version '3.0.2+dfsg'
with Debian dir 90381fe7be9f5ea84d9b16c9cccf200a3fbe138b
Diffstat (limited to 'qmap/libqmap/fftbig.f90')
| -rw-r--r-- | qmap/libqmap/fftbig.f90 | 8 |
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 |
