summaryrefslogtreecommitdiff
path: root/lib/four2a.f90
diff options
context:
space:
mode:
Diffstat (limited to 'lib/four2a.f90')
-rw-r--r--lib/four2a.f904
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/four2a.f90 b/lib/four2a.f90
index 57c7239e..337ca15c 100644
--- a/lib/four2a.f90
+++ b/lib/four2a.f90
@@ -19,6 +19,7 @@ subroutine four2a(a,nfft,ndim,isign,iform)
! This version of four2a makes calls to the FFTW library to do the
! actual computations.
+ use fftw3
parameter (NPMAX=2100) !Max numberf of stored plans
parameter (NSMALL=16384) !Max size of "small" FFTs
complex a(nfft) !Array to be transformed
@@ -29,7 +30,6 @@ subroutine four2a(a,nfft,ndim,isign,iform)
logical found_plan
data nplan/0/ !Number of stored plans
common/patience/npatience,nthreads !Patience and threads for FFTW plans
- include 'fftw3.f90' !FFTW definitions
save plan,nplan,nn,ns,nf,nl
if(nfft.lt.0) go to 999
@@ -107,7 +107,7 @@ subroutine four2a(a,nfft,ndim,isign,iform)
!$omp end critical(fftw)
end if
enddo
-
+ call fftwf_cleanup()
nplan=0
!$omp end critical(four2a)