Skip to content

Commit eac6d59

Browse files
committed
flake8 fixes
1 parent 7ce86e6 commit eac6d59

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

pySDC/implementations/problem_classes/AllenCahn_MPIFFT.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ def __init__(self, problem_params, dtype_u=mesh, dtype_f=imex_mesh):
5555
# Creating FFT structure
5656
ndim = len(problem_params['nvars'])
5757
axes = tuple(range(ndim))
58-
self.fft = PFFT(problem_params['comm'], list(problem_params['nvars']), axes=axes, dtype=np.float64, collapse=True)
58+
self.fft = PFFT(problem_params['comm'], list(problem_params['nvars']), axes=axes, dtype=np.float64,
59+
collapse=True)
5960

6061
# get test data to figure out type and dimensions
6162
tmp_u = newDistArray(self.fft, problem_params['spectral'])

pySDC/implementations/problem_classes/AllenCahn_Temp_MPIFFT.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ def __init__(self, problem_params, dtype_u=mesh, dtype_f=imex_mesh):
5454
# creating FFT structure
5555
ndim = len(problem_params['nvars'])
5656
axes = tuple(range(ndim))
57-
self.fft = PFFT(problem_params['comm'], list(problem_params['nvars']), axes=axes, dtype=np.float64, collapse=True)
57+
self.fft = PFFT(problem_params['comm'], list(problem_params['nvars']), axes=axes, dtype=np.float64,
58+
collapse=True)
5859

5960
# get test data to figure out type and dimensions
6061
tmp_u = newDistArray(self.fft, problem_params['spectral'])

pySDC/implementations/problem_classes/PenningTrap_3D.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,11 @@ def u_exact(self, t):
191191
Ip = u0[0][1] - Im
192192

193193
# compute position in complex notation
194-
w = np.complex128(Rp, Ip) * np.exp(-np.complex128(0, Op * t)) + np.complex128(Rm, Im) * np.exp(-np.complex128(0, Om * t))
194+
w = np.complex128(Rp, Ip) * np.exp(-np.complex128(0, Op * t)) + np.complex128(Rm, Im) * \
195+
np.exp(-np.complex128(0, Om * t))
195196
# compute velocity as time derivative of the position
196-
dw = -1j * Op * np.complex128(Rp, Ip) * \
197-
np.exp(-np.complex128(0, Op * t)) - 1j * Om * np.complex128(Rm, Im) * np.exp(-np.complex128(0, Om * t))
197+
dw = -1j * Op * np.complex128(Rp, Ip) * np.exp(-np.complex128(0, Op * t)) - 1j * Om * np.complex128(Rm, Im) * \
198+
np.exp(-np.complex128(0, Om * t))
198199

199200
# get the appropriate real and imaginary parts
200201
u.pos[0, 0] = w.real

0 commit comments

Comments
 (0)