Skip to content

Commit

Permalink
Ignore complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgensd committed Sep 14, 2024
1 parent d0d0ada commit 794af4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/demos/demo_elasticity_disconnect_2D.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def gather_dof_coordinates(V: FunctionSpace, dofs: np.ndarray):
recvbuf = np.zeros(3 * glob_num_nodes, dtype=V.mesh.geometry.x.dtype)
sendbuf = coords.reshape(-1)
sendcounts = np.array(MPI.COMM_WORLD.gather(len(sendbuf), 0))
MPI.COMM_WORLD.Gatherv(sendbuf, (recvbuf.tolist(), sendcounts.tolist()), root=0)
MPI.COMM_WORLD.Gatherv(sendbuf, (recvbuf, sendcounts), root=0) # type: ignore
glob_coords = MPI.COMM_WORLD.bcast(recvbuf, root=0).reshape((-1, 3))
return glob_coords

Expand Down

0 comments on commit 794af4e

Please sign in to comment.