Commit fd8bdf02 authored by theos's avatar theos
Browse files

Changed keyword defaults for propagator_operator.

Added multithreading to fftw module.
parent 0a66e891
......@@ -3387,8 +3387,8 @@ class propagator_operator(operator):
raise ValueError(about._errors.cstring(
"ERROR: At least M or N must be given."))
def _multiply(self, x, W=None, spam=None, reset=None, note=False,
x0=None, tol=1E-4, clevel=1, limii=None, **kwargs):
def _multiply(self, x, W=None, spam=None, reset=None, note=True,
x0=None, tol=1E-3, clevel=1, limii=None, **kwargs):
if W is None:
W = self.S
......
......@@ -3,7 +3,7 @@
import numpy as np
from d2o import distributed_data_object
from nifty.config import dependency_injector as gdi
import os
pyfftw = gdi.get('pyfftw')
gfft = gdi.get('gfft')
gfft_dummy = gdi.get('gfft_dummy')
......@@ -388,6 +388,7 @@ class _fftw_plan_and_info(object):
output_dtype=self.output_dtype,
direction=self.direction,
flags=["FFTW_ESTIMATE"],
threads=int(os.environ['MY_FFTW_THREADS']),
**kwargs)
)
......
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