Commit d9c94eb0 authored by theos's avatar theos
Browse files

Fixed the rg_space copy and get_codomain method; the fft_module was not copied properly.

parent 9a4fbdb0
Pipeline #2900 skipped
......@@ -93,6 +93,7 @@ class fft_fftw(fft):
if 'pyfftw' not in gdi:
raise ImportError("The module pyfftw is needed but not available.")
self.name = 'pyfftw'
# The plan_dict stores the plan_and_info objects which correspond
# to a certain set of (field_val, domain, codomain) sets.
self.plan_dict = {}
......@@ -401,6 +402,7 @@ class fft_gfft(fft):
"""
def __init__(self, fft_module_name):
self.name = fft_module_name
self.fft_machine = gdi.get(fft_module_name)
if self.fft_machine is None:
raise ImportError(
......
......@@ -258,6 +258,7 @@ class rg_space(point_space):
distances=self.distances,
harmonic=self.harmonic,
datamodel=self.datamodel,
fft_module=self.fft_machine.name,
comm=self.comm)
def get_shape(self):
......@@ -482,6 +483,7 @@ class rg_space(point_space):
distances = 1 / (np.array(self.paradict['shape']) *
np.array(self.distances))
datamodel = self.datamodel
fft_module = self.fft_machine.name
comm = self.comm
complexity = {0: 1, 1: 0, 2: 2}[self.paradict['complexity']]
harmonic = bool(not self.harmonic)
......@@ -492,6 +494,7 @@ class rg_space(point_space):
distances=distances,
harmonic=harmonic,
datamodel=datamodel,
fft_module=fft_module,
comm=comm)
return new_space
......
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