@@ -214,7 +214,7 @@ def _test_urchin_against_single_rank(ctx_factory, m, n, op_wrapper, use_tsqbx):
214214 u = 1 / dist
215215 grad_u = - diff / dist ** 3
216216 else :
217- assert False
217+ raise RuntimeError ( "Unsupported dimension" )
218218
219219 # }}}
220220
@@ -226,11 +226,11 @@ def _test_urchin_against_single_rank(ctx_factory, m, n, op_wrapper, use_tsqbx):
226226 density_discr .nodes (),
227227 actx .from_numpy (grad_u .ravel ()), actx , strict = False )
228228
229- context = {'u' : u_dev , ' grad_u' : grad_u_dev }
229+ context = {"u" : u_dev , " grad_u" : grad_u_dev }
230230 else :
231231 places = None
232232 op = None
233- context = {'u' : None , ' grad_u' : None }
233+ context = {"u" : None , " grad_u" : None }
234234
235235 from pytential .symbolic .execution import bind_distributed
236236 bound_op = bind_distributed (comm , places , op )
@@ -244,7 +244,7 @@ def _test_urchin_against_single_rank(ctx_factory, m, n, op_wrapper, use_tsqbx):
244244 ** params )
245245 places = GeometryCollection (qbx )
246246
247- context = {'u' : u_dev , ' grad_u' : grad_u_dev }
247+ context = {"u" : u_dev , " grad_u" : grad_u_dev }
248248 single_node_result = bind (places , op )(actx , ** context )
249249
250250 distributed_result = actx .to_numpy (flatten (distributed_result , actx ))
@@ -286,16 +286,16 @@ def test_urchin_against_single_rank(
286286 if "PYTEST" in os .environ :
287287 if os .environ ["PYTEST" ] == "1" :
288288 # Run "test_off_surface_eval" test case
289- use_fmm = (os .environ ["use_fmm" ] == ' True' )
290- do_plot = (os .environ ["do_plot" ] == ' True' )
289+ use_fmm = (os .environ ["use_fmm" ] == " True" )
290+ do_plot = (os .environ ["do_plot" ] == " True" )
291291
292292 _test_off_surface_eval (cl .create_some_context , use_fmm , do_plot = do_plot )
293293 elif os .environ ["PYTEST" ] == "2" :
294294 # Run "test_urchin_against_single_rank" test case
295295 m = int (os .environ ["m" ])
296296 n = int (os .environ ["n" ])
297297 op_wrapper_str = os .environ ["op_wrapper" ]
298- use_tsqbx = (os .environ ["use_tsqbx" ] == ' True' )
298+ use_tsqbx = (os .environ ["use_tsqbx" ] == " True" )
299299
300300 if op_wrapper_str == "single_layer_wrapper" :
301301 op_wrapper = single_layer_wrapper
0 commit comments