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 @@ -107,8 +107,8 @@
"id": "3",
"metadata": {},
"source": [
"Note that in addition to give how many elements we would like to have in each direction.\n",
"We also have to supply the _MPI-communicator_.\n",
"Note that in addition to give how many elements we would like to have in each direction,\n",
"we also have to supply the _MPI-communicator_.\n",
"This is to specify how we would like the program to behave in parallel.\n",
"If we supply {py:data}`MPI.COMM_WORLD<mpi4py.MPI.COMM_WORLD>` we create a single mesh,\n",
"whose data is distributed over the number of processors we would like to use.\n",
Expand Down Expand Up @@ -296,7 +296,7 @@
"However, if we would like to change this parameter later in the simulation,\n",
"we would have to redefine our variational formulation.\n",
"The {py:attr}`dolfinx.fem.Constant.value` allows us to update the value in $f$ by using `f.value=5`.\n",
"Additionally, by indicating that $f$ is a constant, we speed of compilation of the variational\n",
"Additionally, by indicating that $f$ is a constant, we speed up compilation of the variational\n",
"formulations required for the created linear system.\n",
"```\n",
"\n",
Expand Down
8 changes: 4 additions & 4 deletions chapter1/fundamentals_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.18.1
# jupytext_version: 1.19.1
# kernelspec:
# display_name: Python 3 (ipykernel)
# language: python
Expand Down Expand Up @@ -97,8 +97,8 @@
domain = mesh.create_unit_square(MPI.COMM_WORLD, 8, 8, mesh.CellType.quadrilateral)
# -

# Note that in addition to give how many elements we would like to have in each direction.
# We also have to supply the _MPI-communicator_.
# Note that in addition to give how many elements we would like to have in each direction,
# we also have to supply the _MPI-communicator_.
# This is to specify how we would like the program to behave in parallel.
# If we supply {py:data}`MPI.COMM_WORLD<mpi4py.MPI.COMM_WORLD>` we create a single mesh,
# whose data is distributed over the number of processors we would like to use.
Expand Down Expand Up @@ -200,7 +200,7 @@
# However, if we would like to change this parameter later in the simulation,
# we would have to redefine our variational formulation.
# The {py:attr}`dolfinx.fem.Constant.value` allows us to update the value in $f$ by using `f.value=5`.
# Additionally, by indicating that $f$ is a constant, we speed of compilation of the variational
# Additionally, by indicating that $f$ is a constant, we speed up compilation of the variational
# formulations required for the created linear system.
# ```
#
Expand Down
Loading