@@ -538,7 +538,7 @@ def test_translations(actx_factory, knl, local_expn_class, mpole_expn_class,
538538
539539 # Just to make sure things also work away from the origin
540540 rng = np .random .default_rng (18 )
541- origin = np .array ([2 , 1 , 0 ][: knl .dim ], np .float64 )
541+ origin = np .array ([0 , 1 , 2 ][ - knl .dim : ], np .float64 )
542542 sources = actx .from_numpy (
543543 0.7 * (- 0.5 + rng .random ((knl .dim , nsources ), dtype = np .float64 ))
544544 + origin [:, np .newaxis ])
@@ -552,19 +552,19 @@ def test_translations(actx_factory, knl, local_expn_class, mpole_expn_class,
552552
553553 from sumpy .visualization import FieldPlotter
554554
555- eval_offset = np .array ([5.5 , 0.0 , 0 ][: knl .dim ])
555+ eval_offset = np .array ([0.0 , 0.0 , 5.5 ][ - knl .dim : ])
556556 fp = FieldPlotter (eval_offset + origin , extent = 0.3 , npoints = res )
557557
558558 centers = actx .from_numpy ((np .array (
559559 [
560560 # box 0: particles, first mpole here
561- [0 , 0 , 0 ][: knl .dim ],
561+ [0 , 0 , 0 ][- knl .dim : ],
562562
563563 # box 1: second mpole here
564- np .array ([- 0.2 , 0.1 , 0 ][: knl .dim ], np .float64 ),
564+ np .array ([0 , 0.1 , - 0.2 ][ - knl .dim : ], np .float64 ),
565565
566566 # box 2: first local here
567- eval_offset + np .array ([0.3 , - 0.2 , 0 ][: knl .dim ], np .float64 ),
567+ eval_offset + np .array ([0 , - 0.2 , 0.3 ][ - knl .dim : ], np .float64 ),
568568
569569 # box 3: second local and eval here
570570 eval_offset
0 commit comments