diff --git a/chapter1/fundamentals_code.ipynb b/chapter1/fundamentals_code.ipynb index f06dc269..b5720707 100644 --- a/chapter1/fundamentals_code.ipynb +++ b/chapter1/fundamentals_code.ipynb @@ -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` we create a single mesh,\n", "whose data is distributed over the number of processors we would like to use.\n", @@ -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", diff --git a/chapter1/fundamentals_code.py b/chapter1/fundamentals_code.py index dffc9b32..ab3d4d89 100644 --- a/chapter1/fundamentals_code.py +++ b/chapter1/fundamentals_code.py @@ -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 @@ -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` we create a single mesh, # whose data is distributed over the number of processors we would like to use. @@ -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. # ``` #