File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11from __future__ import print_function
22from time import time
33import numpy as np
4+ from mpi4py_fft import fftw
45from mpi4py_fft .libfft import FFT
56
67has_pyfftw = True
@@ -20,7 +21,10 @@ def test_libfft():
2021
2122 dims = (1 , 2 , 3 )
2223 sizes = (7 , 8 , 9 )
23- types = 'fdgFDG'
24+ types = ''
25+ for t in 'fdg' :
26+ if fftw .get_fftw_lib (t ):
27+ types += t + t .upper ()
2428
2529 for use_pyfftw in (False , True ):
2630 if has_pyfftw is False and use_pyfftw is True :
Original file line number Diff line number Diff line change @@ -52,8 +52,10 @@ def test_mpifft():
5252 comm = MPI .COMM_WORLD
5353 dims = (2 , 3 , 4 ,)
5454 sizes = (16 , 17 )
55- types = 'fFdDgG'
56-
55+ types = ''
56+ for t in 'fdg' :
57+ if fftw .get_fftw_lib (t ):
58+ types += t + t .upper ()
5759 for typecode in types :
5860 for dim in dims :
5961 for shape in product (* ([sizes ]* dim )):
You can’t perform that action at this time.
0 commit comments