Skip to content

Commit b787fe6

Browse files
committed
fixes for the paper
1 parent 07da628 commit b787fe6

File tree

5 files changed

+21
-5
lines changed

5 files changed

+21
-5
lines changed

pySDC/projects/TOMS/AllenCahn_contracting_circle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def show_results(fname, cwd=''):
211211
ax1.set_ylabel('time (sec)')
212212

213213
ax2 = ax1.twinx()
214-
ax2.bar(xcoords, heights_niters, color='r', align='edge', width=0.3, label='iterations (right axis)')
214+
ax2.bar(xcoords, heights_niters, color='lightcoral', align='edge', width=0.3, label='iterations (right axis)')
215215
ax2.set_ylabel('mean number of iterations')
216216

217217
ax1.set_xticks(xcoords)

pySDC/projects/TOMS/visualize_pySDC_with_PETSc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def visualize_speedup(result=None):
127127
result: dictionary containing the runtimes
128128
"""
129129
process_list_MLSDC = [1, 2, 4, 6, 12, 24]
130-
process_list_PFASST = [24, 48, 96, 144, 288]
130+
process_list_PFASST = [24, 48, 96, 144, 288, 576]
131131

132132
timing_MLSDC = np.zeros(len(process_list_MLSDC))
133133
timing_PFASST = np.zeros((len(process_list_PFASST)))
@@ -177,10 +177,10 @@ def main(cwd=''):
177177
visualize_matrix(result=result)
178178

179179
result = {}
180-
files = ['data/result_MLSDC.dat', 'data/result_PFASST_multinode_24.dat']
180+
files = ['data/result_MLSDC_NEW.dat', 'data/result_PFASST_multinode_24_NEW.dat']
181181
for file in files:
182182
result = join_timings(file=file, result=result, cwd=cwd)
183-
result.pop((24, 24))
183+
# result.pop((24, 24))
184184
visualize_speedup(result=result)
185185

186186

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
from pySDC.projects.parallelSDC.AllenCahn_parallel import main
22

33
def test_main():
4-
main()
4+
5+
# try to import MPI here, will fail if things go wrong (and not later on in the subprocess part)
6+
import mpi4py
7+
8+
main()

pySDC/tests/test_tutorials/test_step_7.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ def test_B():
1212
main_B()
1313

1414
def test_C_1x1():
15+
# try to import MPI here, will fail if things go wrong (and not in the subprocess part)
16+
import mpi4py
17+
1518
# Set python path once
1619
my_env = os.environ.copy()
1720
my_env['PYTHONPATH'] = '../../..:.'
@@ -30,6 +33,9 @@ def test_C_1x1():
3033
(p.returncode, num_procs)
3134

3235
def test_C_1x2():
36+
# try to import MPI here, will fail if things go wrong (and not in the subprocess part)
37+
import mpi4py
38+
3339
# Set python path once
3440
my_env = os.environ.copy()
3541
my_env['PYTHONPATH'] = '../../..:.'
@@ -47,6 +53,9 @@ def test_C_1x2():
4753
(p.returncode, num_procs)
4854

4955
def test_C_2x2():
56+
# try to import MPI here, will fail if things go wrong (and not in the subprocess part)
57+
import mpi4py
58+
5059
# Set python path once
5160
my_env = os.environ.copy()
5261
my_env['PYTHONPATH'] = '../../..:.'

pySDC/tutorial/step_6/C_MPI_parallelization.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ def main(cwd):
99
cwd: current working directory
1010
"""
1111

12+
# try to import MPI here, will fail if things go wrong (and not in the subprocess part)
13+
import mpi4py
14+
1215
# Set python path once
1316
my_env = os.environ.copy()
1417
my_env['PYTHONPATH'] = '../../..:.'

0 commit comments

Comments
 (0)