Skip to content

Commit 17cf364

Browse files
committed
beautifications
1 parent 8bfbe0e commit 17cf364

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pySDC/projects/TOMS/visualize_pySDC_with_PETSc.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ def visualize_matrix(result=None):
9898
plt_helper.newfig(textwidth=120, scale=1.5)
9999
cmap = plt_helper.plt.get_cmap('RdYlGn_r')
100100
new_cmap = truncate_colormap(cmap, 0.1, 0.9)
101-
plt_helper.plt.imshow(mat.T, origin='lower', norm=colors.LogNorm(vmin=tmin, vmax=tmax), cmap=new_cmap, aspect='auto')
101+
plt_helper.plt.imshow(mat.T, origin='lower', norm=colors.LogNorm(vmin=tmin, vmax=tmax), cmap=new_cmap,
102+
aspect='auto')
102103

103104
for key, item in result.items():
104105
timing = "{:3.1f}".format(item)
@@ -126,7 +127,7 @@ def visualize_speedup(result=None):
126127
result: dictionary containing the runtimes
127128
"""
128129
process_list_MLSDC = [1, 2, 4, 6, 12, 24]
129-
process_list_PFASST = [24, 48, 96, 144, 288, 576]
130+
process_list_PFASST = [24, 48, 96, 144, 288]
130131

131132
timing_MLSDC = np.zeros(len(process_list_MLSDC))
132133
timing_PFASST = np.zeros((len(process_list_PFASST)))
@@ -179,6 +180,7 @@ def main(cwd=''):
179180
files = ['data/result_MLSDC.dat', 'data/result_PFASST_multinode_24.dat']
180181
for file in files:
181182
result = join_timings(file=file, result=result, cwd=cwd)
183+
result.pop((24, 24))
182184
visualize_speedup(result=result)
183185

184186

0 commit comments

Comments
 (0)