Skip to content

Commit eaf1876

Browse files
authored
Revise scatter forwards (#61)
As suggested in #60
1 parent 7e5bb70 commit eaf1876

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

chapter2/nonlinpoisson_code.ipynb

-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
"u_exact = lambda x: eval(str(u_ufl))\n",
6161
"u_D = Function(V)\n",
6262
"u_D.interpolate(u_exact)\n",
63-
"u_D.x.scatter_forward()\n",
6463
"fdim = mesh.topology.dim - 1\n",
6564
"boundary_facets = locate_entities_boundary(mesh, fdim, lambda x: numpy.full(x.shape[1], True, dtype=bool))\n",
6665
"bc = dirichletbc(u_D, locate_dofs_topological(V, fdim, boundary_facets))"
@@ -187,7 +186,6 @@
187186
"source": [
188187
"set_log_level(LogLevel.INFO)\n",
189188
"n, converged = solver.solve(uh)\n",
190-
"uh.x.scatter_forward()\n",
191189
"assert(converged)\n",
192190
"print(f\"Number of interations: {n:d}\")"
193191
]

0 commit comments

Comments
 (0)