Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions chapter1/fundamentals_code.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -458,11 +458,11 @@
"metadata": {},
"outputs": [],
"source": [
"error_max = numpy.max(numpy.abs(uD.x.array - uh.x.array))\n",
"vertex_max = domain.comm.allreduce(error_max, op=MPI.MAX)\n",
"local_L_infty = numpy.max(numpy.abs(uD.x.array - uh.x.array))\n",
"L_infty = domain.comm.allreduce(local_L_infty, op=MPI.MAX)\n",
"if domain.comm.rank == 0: # Only print the error on one process\n",
" print(f\"Error_L2 : {error_L2:.2e}\")\n",
" print(f\"Error_max : {error_max:.2e}\")"
" print(f\"Error_max : {L_infty:.2e}\")"
]
},
{
Expand Down
6 changes: 3 additions & 3 deletions chapter1/fundamentals_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,11 @@
# As we already have interpolated the exact solution into the first order space when creating the boundary condition,
# we can compare the maximum values at any degree of freedom of the approximation space.

error_max = numpy.max(numpy.abs(uD.x.array - uh.x.array))
vertex_max = domain.comm.allreduce(error_max, op=MPI.MAX)
local_L_infty = numpy.max(numpy.abs(uD.x.array - uh.x.array))
L_infty = domain.comm.allreduce(local_L_infty, op=MPI.MAX)
if domain.comm.rank == 0: # Only print the error on one process
print(f"Error_L2 : {error_L2:.2e}")
print(f"Error_max : {vertex_max:.2e}")
print(f"Error_max : {L_infty:.2e}")

# ## Plotting the mesh using pyvista
# We will visualizing the mesh using [pyvista](https://docs.pyvista.org/), an interface to the VTK toolkit.
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "DOLFINx_Tutorial"
version = "0.11.0"
version = "0.12.0.dev0"
dependencies = [
"jupyter-book<2.0",
"meshio",
Expand All @@ -13,7 +13,7 @@ dependencies = [
"pandas",
"tqdm",
"pyvista[all]>=0.45.0",
"fenics-dolfinx>=0.11.0,<0.12.0",
"fenics-dolfinx>=0.12.0.dev0,<0.13.0",
"sphinx-codeautolink",
"trame_jupyter_extension",
"jupytext",
Expand Down
Loading