Skip to content

Commit cf4bd32

Browse files
author
Thomas Baumann
committed
lala
1 parent 115ee63 commit cf4bd32

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

pySDC/projects/GPU/analysis_scripts/parallel_scaling.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,11 @@ class RayleighBenardDedalusComparison(CPUConfig, RBCBaseConfig):
297297
config = 'RBC_Tibo'
298298
max_steps_space = 6
299299
tasks_time = 4
300+
experiments = [
301+
Experiment(res=256, PinT=False, start=1, stop=64, marker='.'),
302+
Experiment(res=256, PinT=True, start=4, stop=256, marker='.'),
303+
]
304+
300305

301306

302307
class RayleighBenardDedalusComparisonGPU(GPUConfig, ScalingConfig):
@@ -336,6 +341,8 @@ def plot_scalings(problem, **kwargs): # pragma: no cover
336341
ideal_lines = {
337342
('GS3D', 'throughput'): {'x': [0.25, 400], 'y': [5e6, 8e9]},
338343
('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]},
339346
}
340347

341348
fig, ax = plt.subplots(figsize=figsize_by_journal('TUHH_thesis', 1, 0.6))
@@ -383,7 +390,7 @@ def plot_scalings(problem, **kwargs): # pragma: no cover
383390
config_classes += [GrayScottSpaceScalingGPU3D]
384391
elif args.problem == 'RBC':
385392
if args.XPU == 'CPU':
386-
config_classes += [RayleighBenardSpaceScalingCPU, RayleighBenardSpaceScalingCPULarge]
393+
config_classes += [RayleighBenardSpaceScalingCPU]
387394
else:
388395
config_classes += [RayleighBenardSpaceScalingGPU]
389396
elif args.problem == 'RBC_dedalus':

pySDC/projects/GPU/analysis_scripts/plot_large_simulations.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def get_fig(self, *args, **kwargs):
5454

5555
def save_fig(self, fig, name):
5656
path = f'plots/{self.name}_{name}.pdf'
57-
fig.savefig(path, bbox_inches='tight')
57+
fig.savefig(path, bbox_inches='tight', dpi=300)
5858
print(f'Saved {path!r}', flush=True)
5959

6060
@property
@@ -281,9 +281,11 @@ def plot_series(self, test=False):
281281
if test:
282282
indices = [0, 1, 2, 3, 4, 5]
283283
process = 0
284+
layer = 0
284285
else:
285-
indices = [0, 10, 20, 30, 40, 91]
286-
process = 96
286+
indices = [91] # [0, 10, 20, 30, 40, 91]
287+
process = 120# 141#20#96 # 11
288+
layer = 6
287289

288290
from mpl_toolkits.axes_grid1 import make_axes_locatable
289291

@@ -300,14 +302,19 @@ def plot_series(self, test=False):
300302
for frame in frame_range:
301303

302304
plt.rcParams['figure.constrained_layout.use'] = True
303-
fig, ax = plt.subplots(1, 1, figsize=figsize_by_journal('TUHH_thesis', 0.4, 1.1))
305+
fig, ax = plt.subplots(1, 1, figsize=figsize_by_journal('TUHH_thesis', 0.7, 1.1))
304306
divider = make_axes_locatable(ax)
305307
cax = divider.append_axes('right', size='3%', pad=0.03)
306308

307309
path = self.get_path(idx=frame, n_space=process)
308310
with open(path, 'rb') as file:
309311
data = pickle.load(file)
310-
im = ax.pcolormesh(X[1][0], X[2][0], data['u'][0], cmap='binary', rasterized=True)
312+
313+
# im = ax.pcolormesh(X[1][0], X[2][0], np.max(data['v'], axis=0), cmap='binary', rasterized=True, vmin=0, vmax=0.5)
314+
# 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)
316+
ax.set_xlim((9, 14))
317+
ax.set_ylim((-4, 1))
311318

312319
fig.colorbar(im, cax) # , label=f'$T(t={{{t:.1f}}})$')
313320

0 commit comments

Comments
 (0)