Skip to content

Commit c835709

Browse files
committed
fix unit test (rank ==)
1 parent a982a81 commit c835709

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/struphy/pic/tests/test_sph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ def du_xyz(x, y, z):
10391039
err_uy = xp.max(xp.abs(all_velo2 - v2_e)) / xp.max(xp.abs(v2_e))
10401040
err_uz = xp.max(xp.abs(all_velo3 - v3_e)) / xp.max(xp.abs(v3_e))
10411041

1042-
if comm.Get_rank() == 0:
1042+
if rank == 0:
10431043
print(f"\n{boxes_per_dim = }")
10441044
print(f"{kernel = }, {derivative = }")
10451045
print(f"{bc_x = }, {eval_pts = }, {tesselation = }")

0 commit comments

Comments
 (0)