Skip to content

Commit f408fdb

Browse files
committed
Fix get_simple_2d_mpi_method
1 parent 217d050 commit f408fdb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/fluidfft/fft2d/operators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def get_simple_2d_mpi_method():
6060
method = "fft2d.mpi_with_fftwmpi2d"
6161
try:
6262
import_fft_class(method)
63-
except ImportError:
63+
except (ImportError, ValueError):
6464
method = "fft2d.mpi_with_fftw1d"
6565
return method
6666

src/fluidfft/fft3d/operators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def get_simple_3d_mpi_method():
121121
method = "fft3d.mpi_with_fftwmpi3d"
122122
try:
123123
import_fft_class(method)
124-
except ImportError:
124+
except (ImportError, ValueError):
125125
method = "fft3d.mpi_with_fftw1d"
126126
return method
127127

0 commit comments

Comments
 (0)