Skip to content

Commit 08c19a3

Browse files
committed
gather after rename
1 parent 7ce2bef commit 08c19a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/stencil-2d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ def main():
197197
# * Analyze and output results.
198198
# ******************************************************************************
199199

200-
B = np.spmd.gather(B)
201-
norm = np.linalg.norm(np.reshape(B, n * n), ord=1)
200+
B = np.spmd.gather(np.reshape(B, (n * n,)))
201+
norm = np.linalg.norm(B, ord=1)
202202
active_points = (n - 2 * r) ** 2
203203
norm /= active_points
204204

0 commit comments

Comments
 (0)