Skip to content

Commit acaae24

Browse files
committed
Black
1 parent f6b3f4c commit acaae24

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

pySDC/projects/GPU/analysis_scripts/parallel_scaling.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ class RayleighBenardDedalusComparison(CPUConfig, RBCBaseConfig):
303303
]
304304

305305

306-
307306
class RayleighBenardDedalusComparisonGPU(GPUConfig, ScalingConfig):
308307
base_resolution_weak = 256
309308
base_resolution = 256
@@ -341,8 +340,8 @@ def plot_scalings(problem, **kwargs): # pragma: no cover
341340
ideal_lines = {
342341
('GS3D', 'throughput'): {'x': [0.25, 400], 'y': [5e6, 8e9]},
343342
('GS3D', 'time'): {'x': [0.25, 400], 'y': [80, 5e-2]},
344-
('RBC', 'throughput'): {'x': [1/10, 64], 'y': [2e4, 2e4*640]},
345-
('RBC', 'time'): {'x': [1/10, 64], 'y': [60, 60/640]},
343+
('RBC', 'throughput'): {'x': [1 / 10, 64], 'y': [2e4, 2e4 * 640]},
344+
('RBC', 'time'): {'x': [1 / 10, 64], 'y': [60, 60 / 640]},
346345
}
347346

348347
fig, ax = plt.subplots(figsize=figsize_by_journal('TUHH_thesis', 1, 0.6))

pySDC/projects/GPU/analysis_scripts/plot_large_simulations.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@ def plot_series(self, test=False):
283283
process = 0
284284
layer = 0
285285
else:
286-
indices = [91] # [0, 10, 20, 30, 40, 91]
287-
process = 120# 141#20#96 # 11
286+
indices = [91] # [0, 10, 20, 30, 40, 91]
287+
process = 120 # 141#20#96 # 11
288288
layer = 6
289289

290290
from mpl_toolkits.axes_grid1 import make_axes_locatable
@@ -312,7 +312,9 @@ def plot_series(self, test=False):
312312

313313
# im = ax.pcolormesh(X[1][0], X[2][0], np.max(data['v'], axis=0), cmap='binary', rasterized=True, vmin=0, vmax=0.5)
314314
# im = ax.pcolormesh(X[1][layer], X[2][layer], data['v'][layer], cmap='binary', rasterized=True, vmin=0, vmax=0.5)
315-
im = ax.pcolormesh(X[1][layer], X[2][layer], data['v'][layer], cmap='binary', rasterized=True, vmin=0, vmax=0.5)
315+
im = ax.pcolormesh(
316+
X[1][layer], X[2][layer], data['v'][layer], cmap='binary', rasterized=True, vmin=0, vmax=0.5
317+
)
316318
ax.set_xlim((9, 14))
317319
ax.set_ylim((-4, 1))
318320

0 commit comments

Comments
 (0)