Commit bb5cd1e6 authored by Theo Steininger's avatar Theo Steininger

Fixed bug in _fft_module_checker.

parent 102c1aad
Pipeline #13334 passed with stage
in 5 minutes and 24 seconds
......@@ -35,14 +35,12 @@ dependency_injector = keepers.DependencyInjector(
def _fft_module_checker(z):
if z == 'fftw_mpi':
if 'fftw' in dependency_injector:
if lambda z: hasattr(dependency_injector['fftw'], 'FFTW_MPI'):
return True
else:
return False
return hasattr(dependency_injector.get('fftw'), 'FFTW_MPI')
if z == 'fftw':
return 'fftw' in dependency_injector
return True
return ('fftw' in dependency_injector)
if z == 'numpy':
return True
return False
# Initialize the variables
variable_fft_module = keepers.Variable(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment