Skip to content

Commit a11f82e

Browse files
committed
Another small cleanup
1 parent fbe89fc commit a11f82e

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

pySDC/helpers/spectral_helper.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,15 +1522,9 @@ def setup_fft(self, real_spectral_coefficients=False):
15221522
self.add_component('u')
15231523

15241524
self.global_shape = (len(self.components),) + tuple(me.N for me in self.axes)
1525-
self.forward_alignment = 0
1526-
self.backward_alignment = 0
15271525

15281526
axes = tuple(i for i in range(len(self.axes)))
15291527
self.fft_obj = self.get_pfft(axes=axes)
1530-
if self.fft_obj is not None:
1531-
1532-
self.backward_alignment = self.newDistArray(self.fft_obj, forward_output=False, rank=1).alignment
1533-
self.forward_alignment = self.newDistArray(self.fft_obj, forward_output=True, rank=1).alignment
15341528

15351529
self.init = (
15361530
np.empty(shape=self.global_shape)[
@@ -1683,7 +1677,7 @@ def transform(self, u, *args, axes=None, padding=None, **kwargs):
16831677

16841678
if padding is not None:
16851679
_out /= np.prod(padding)
1686-
return _out.redistribute(self.forward_alignment)
1680+
return _out
16871681

16881682
def itransform(self, u, *args, axes=None, padding=None, **kwargs):
16891683
if padding is not None:
@@ -1713,7 +1707,7 @@ def itransform(self, u, *args, axes=None, padding=None, **kwargs):
17131707

17141708
if padding is not None:
17151709
_out *= np.prod(padding)
1716-
return _out.redistribute(self.backward_alignment)
1710+
return _out
17171711

17181712
def get_local_slice_of_1D_matrix(self, M, axis):
17191713
"""

0 commit comments

Comments
 (0)