@@ -42,7 +42,7 @@ def compute_errors(args, dts, Tend):
4242 i = prob .index (comp )
4343 e_comp = np .max (np .abs (e [i ])) / np .max (np .abs (ref [i ]))
4444 e_comp = MPI .COMM_WORLD .allreduce (e_comp , op = MPI .MAX )
45- errors [comp ].append (e_comp )
45+ errors [comp ].append (float ( e_comp ) )
4646 errors ['dt' ].append (dt )
4747
4848 path = get_path (args )
@@ -52,7 +52,7 @@ def compute_errors(args, dts, Tend):
5252 print (f'Saved errors to { path } ' , flush = True )
5353
5454
55- def plot_error_all_components (args ):
55+ def plot_error_all_components (args ): # pragma: no cover
5656 setup_mpl ()
5757 fig , ax = plt .subplots ()
5858 with open (get_path (args ), 'rb' ) as file :
@@ -71,7 +71,7 @@ def plot_error_all_components(args):
7171 ax .set_ylabel (r'$e$' )
7272
7373
74- def compare_order (Ra ):
74+ def compare_order (Ra ): # pragma: no cover
7575 setup_mpl ()
7676 fig , ax = plt .subplots (figsize = figsize_by_journal ('Nature_CS' , 1 , 0.6 ))
7777 ls = {'SD' : '-' , 'RK' : '--' , 'Eu' : '-.' }
@@ -115,12 +115,13 @@ def run(args, dt, Tend):
115115 config = get_config (args )
116116 config .Tend = n_freefall_times .get (type (config ).__name__ , 3 )
117117
118- desc = config .get_description ()
118+ desc = config .get_description (res = args [ 'res' ] )
119119 prob = desc ['problem_class' ](** desc ['problem_params' ])
120120
121121 ic_config_name = type (config ).__name__
122122 for name in ['RK' , 'Euler' , 'O3' , 'O4' , 'SDC23' , 'SDC34' , 'SDC44' ]:
123- ic_config_name = ic_config_name .replace (name , '' )
123+ ic_config_name = ic_config_name .replace (name , 'SDC34' )
124+
124125 ic_config = get_config ({** args , 'config' : ic_config_name })
125126 config .ic_config ['config' ] = type (ic_config )
126127 config .ic_config ['res' ] = ic_config .res
0 commit comments