11import subprocess
22import os
3-
43from pySDC .tutorial .step_7 .A_visualize_residuals import main as main_A
54from pySDC .tutorial .step_7 .B_multistep_SDC import main as main_B
65
@@ -20,6 +19,8 @@ def test_C_1x1():
2019 cmd = ('mpirun -np ' + str (num_procs ) + ' python pySDC/tutorial/step_7/C_pySDC_with_PETSc.py '
2120 + str (num_procs_space ) + ' ' + 'step_7_C_out_1x1.txt' ).split ()
2221 p = subprocess .Popen (cmd , stdout = subprocess .PIPE , stderr = subprocess .PIPE , env = my_env , cwd = cwd )
22+ stdout = p .communicate ()[0 ]
23+ print ('STDOUT:{}' .format (stdout ))
2324 p .wait ()
2425 assert p .returncode == 0 , 'ERROR: did not get return code 0, got %s with %2i processes' % \
2526 (p .returncode , num_procs )
@@ -34,6 +35,8 @@ def test_C_1x2():
3435 cmd = ('mpirun -np ' + str (num_procs ) + ' python pySDC/tutorial/step_7/C_pySDC_with_PETSc.py '
3536 + str (num_procs_space ) + ' ' + 'step_7_C_out_1x2.txt' ).split ()
3637 p = subprocess .Popen (cmd , stdout = subprocess .PIPE , stderr = subprocess .PIPE , env = my_env , cwd = cwd )
38+ stdout = p .communicate ()[0 ]
39+ print ('STDOUT:{}' .format (stdout ))
3740 p .wait ()
3841 assert p .returncode == 0 , 'ERROR: did not get return code 0, got %s with %2i processes' % \
3942 (p .returncode , num_procs )
@@ -48,6 +51,8 @@ def test_C_2x2():
4851 cmd = ('mpirun -np ' + str (num_procs ) + ' python pySDC/tutorial/step_7/C_pySDC_with_PETSc.py '
4952 + str (num_procs_space ) + ' ' + 'step_7_C_out_2x2.txt' ).split ()
5053 p = subprocess .Popen (cmd , stdout = subprocess .PIPE , stderr = subprocess .PIPE , env = my_env , cwd = cwd )
54+ stdout = p .communicate ()[0 ]
55+ print ('STDOUT:{}' .format (stdout ))
5156 p .wait ()
5257 assert p .returncode == 0 , 'ERROR: did not get return code 0, got %s with %2i processes' % \
5358 (p .returncode , num_procs )
0 commit comments