Skip to content

Commit fbe89fc

Browse files
committed
Small cleanup
1 parent d19e6cf commit fbe89fc

File tree

2 files changed

+6
-17
lines changed

2 files changed

+6
-17
lines changed

pySDC/helpers/spectral_helper.py

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -916,20 +916,18 @@ def setup_GPU(cls):
916916

917917
cls.dtype = cupy_mesh
918918

919-
def __init__(self, comm=None, useGPU=False, slab_decomposition=False, debug=False):
919+
def __init__(self, comm=None, useGPU=False, debug=False):
920920
"""
921921
Constructor
922922
923923
Args:
924924
comm (mpi4py.Intracomm): MPI communicator
925925
useGPU (bool): Whether to use GPUs
926-
slab_decomposition (bool): Whether to use slab or pencil decomposition
927926
debug (bool): Perform additional checks at extra computational cost
928927
"""
929928
self.comm = comm
930929
self.debug = debug
931930
self.useGPU = useGPU
932-
self.slab_decomposition = slab_decomposition
933931

934932
if useGPU:
935933
self.setup_GPU()
@@ -963,11 +961,11 @@ def u_init_forward(self):
963961
return self.dtype(self.init_forward)
964962

965963
@property
966-
def u_init_real(self):
964+
def u_init_physical(self):
967965
"""
968-
Get empty data container in spectral space
966+
Get empty data container in physical space
969967
"""
970-
return self.dtype(self.init_real)
968+
return self.dtype(self.init_physical)
971969

972970
@property
973971
def shape(self):
@@ -1417,14 +1415,6 @@ def no_transform(u, *args, **kwargs):
14171415
for i in axes:
14181416
transforms[((i + self.ndim) % self.ndim,)] = (self.axes[i].transform, self.axes[i].itransform)
14191417

1420-
if self.comm and self.comm.size == 1:
1421-
grid = None
1422-
elif self.slab_decomposition:
1423-
raise NotImplementedError
1424-
grid = (-1,) + tuple(me.N for me in self.axes[1:])
1425-
else:
1426-
grid = (-1,) * (self.ndim - 1) + (1,)
1427-
14281418
# "transform" all axes to ensure consistent shapes.
14291419
# Transform non-distributable axes last to ensure they are aligned
14301420
_axes = tuple(sorted((axis + self.ndim) % self.ndim for axis in axes))
@@ -1433,7 +1423,6 @@ def no_transform(u, *args, **kwargs):
14331423
+ [axis for axis in range(self.ndim) if axis not in _axes]
14341424
)
14351425

1436-
grid = None
14371426
pfft = PFFT(
14381427
comm=self.comm,
14391428
shape=self.global_shape[1:],
@@ -1553,7 +1542,7 @@ def setup_fft(self, real_spectral_coefficients=False):
15531542
self.comm,
15541543
np.dtype('float'),
15551544
)
1556-
self.init_real = (
1545+
self.init_physical = (
15571546
np.empty(shape=self.global_shape)[
15581547
(
15591548
...,

pySDC/tests/test_problems/test_RayleighBenard3D.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def test_eval_f(nx, nz, direction, spectral_space):
5454
else:
5555
raise NotImplementedError
5656

57-
u = P.u_init_real
57+
u = P.u_init_physical
5858
assert np.allclose(P.eval_f(P.u_init), 0), 'Non-zero time derivative in static 0 configuration'
5959

6060
for i in [iu, iv, iw, iT, ip]:

0 commit comments

Comments
 (0)