summaryrefslogtreecommitdiff
path: root/lib/four2a.f90
diff options
context:
space:
mode:
authortony mancill <tmancill@debian.org>2021-10-30 11:14:35 -0700
committertony mancill <tmancill@debian.org>2021-10-30 11:14:35 -0700
commit27d0d660257d9dcdab5c5ca8addd01cc10552902 (patch)
tree14e3cb9743f1a04da7c9093d08520e801a48adf3 /lib/four2a.f90
parent6ec76defdb6622d379e68ee4a4d45f8c9758bb1f (diff)
New upstream version 2.5.1+repackupstream/2.5.1+repack
Diffstat (limited to 'lib/four2a.f90')
-rw-r--r--lib/four2a.f906
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/four2a.f90 b/lib/four2a.f90
index e7e0e801..9e08722e 100644
--- a/lib/four2a.f90
+++ b/lib/four2a.f90
@@ -21,7 +21,7 @@ subroutine four2a(a,nfft,ndim,isign,iform)
use fftw3
parameter (NPMAX=2100) !Max numberf of stored plans
- parameter (NSMALL=16384) !Max size of "small" FFTs
+ parameter (NSMALL=16385) !Max half complex size of "small" FFTs
complex a(nfft) !Array to be transformed
complex aa(NSMALL) !Local copy of "small" a()
integer nn(NPMAX),ns(NPMAX),nf(NPMAX) !Params of stored plans
@@ -67,7 +67,7 @@ subroutine four2a(a,nfft,ndim,isign,iform)
if(nfft.le.NSMALL) then
jz=nfft
- if(iform.eq.0) jz=nfft/2
+ if(iform.le.0) jz=nfft/2+1
aa(1:jz)=a(1:jz)
endif
@@ -87,7 +87,7 @@ subroutine four2a(a,nfft,ndim,isign,iform)
if(nfft.le.NSMALL) then
jz=nfft
- if(iform.eq.0) jz=nfft/2
+ if(iform.le.0) jz=nfft/2+1
a(1:jz)=aa(1:jz)
endif
end if