Skip to content

Commit

Permalink
Small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brownbaerchen committed Dec 13, 2024
1 parent c48fdc2 commit 28d6715
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 28 deletions.
8 changes: 4 additions & 4 deletions pySDC/projects/GPU/analysis_scripts/parallel_scaling.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,10 +355,10 @@ def plot_scalings(problem, **kwargs): # pragma: no cover
ideal_lines = {
('GS3D', 'throughput'): {'x': [0.25, 400], 'y': [5e6, 8e9]},
('GS3D', 'time'): {'x': [0.25, 400], 'y': [80, 5e-2]},
('RBC', 'throughput'): {'x': [1/10, 64], 'y': [2e4, 2e4*640]},
('RBC', 'time'): {'x': [1/10, 64], 'y': [60, 60/640]},
('RBC', 'time_per_task'): {'x': [1, 640], 'y': [60, 60/640]},
('RBC', 'throughput_per_task'): {'x': [1/1, 640], 'y': [2e4, 2e4*640]},
('RBC', 'throughput'): {'x': [1 / 10, 64], 'y': [2e4, 2e4 * 640]},
('RBC', 'time'): {'x': [1 / 10, 64], 'y': [60, 60 / 640]},
('RBC', 'time_per_task'): {'x': [1, 640], 'y': [60, 60 / 640]},
('RBC', 'throughput_per_task'): {'x': [1 / 1, 640], 'y': [2e4, 2e4 * 640]},
}

fig, ax = plt.subplots(figsize=figsize_by_journal('TUHH_thesis', 1, 0.6))
Expand Down
24 changes: 0 additions & 24 deletions pySDC/projects/GPU/configs/RBC_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ def get_config(args):
return RayleighBenard_Thibaut(args)
elif name == 'RBC_scaling':
return RayleighBenard_scaling(args)
elif name == 'RBC_scaling_x':
return RayleighBenard_scaling_x(args)
elif name == 'RBC_scaling_z':
return RayleighBenard_scaling_z(args)
elif name == 'RBC_large':
return RayleighBenard_large(args)
else:
Expand Down Expand Up @@ -386,26 +382,6 @@ def get_controller_params(self, *args, **kwargs):
return params


class RayleighBenard_scaling_x(RayleighBenard_scaling):
vertical_res = 256

def get_description(self, *args, res=-1, **kwargs):
desc = super().get_description(*args, **kwargs)
desc['problem_params']['nx'] = res
desc['problem_params']['nz'] = self.vertical_res
return desc


class RayleighBenard_scaling_z(RayleighBenard_scaling):
horizontal_res = 1024

def get_description(self, *args, res=-1, **kwargs):
desc = super().get_description(*args, **kwargs)
desc['problem_params']['nx'] = self.horizontal_res
desc['problem_params']['nz'] = res
return desc


class RayleighBenard_large(RayleighBenardRegular):
# res_per_plume = 256
# vertical_res = 1024
Expand Down

0 comments on commit 28d6715

Please sign in to comment.