Skip to content

Commit 071aaa5

Browse files
mleoni-pfjorgensd
andauthored
Update fundamentals_code.ipynb (#309)
* Update fundamentals_code.ipynb typos * Update fundamental python file --------- Co-authored-by: jorgensd <dokken92@gmail.com>
1 parent f11182f commit 071aaa5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

chapter1/fundamentals_code.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@
107107
"id": "3",
108108
"metadata": {},
109109
"source": [
110-
"Note that in addition to give how many elements we would like to have in each direction.\n",
111-
"We also have to supply the _MPI-communicator_.\n",
110+
"Note that in addition to give how many elements we would like to have in each direction,\n",
111+
"we also have to supply the _MPI-communicator_.\n",
112112
"This is to specify how we would like the program to behave in parallel.\n",
113113
"If we supply {py:data}`MPI.COMM_WORLD<mpi4py.MPI.COMM_WORLD>` we create a single mesh,\n",
114114
"whose data is distributed over the number of processors we would like to use.\n",
@@ -296,7 +296,7 @@
296296
"However, if we would like to change this parameter later in the simulation,\n",
297297
"we would have to redefine our variational formulation.\n",
298298
"The {py:attr}`dolfinx.fem.Constant.value` allows us to update the value in $f$ by using `f.value=5`.\n",
299-
"Additionally, by indicating that $f$ is a constant, we speed of compilation of the variational\n",
299+
"Additionally, by indicating that $f$ is a constant, we speed up compilation of the variational\n",
300300
"formulations required for the created linear system.\n",
301301
"```\n",
302302
"\n",

chapter1/fundamentals_code.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# extension: .py
77
# format_name: light
88
# format_version: '1.5'
9-
# jupytext_version: 1.18.1
9+
# jupytext_version: 1.19.1
1010
# kernelspec:
1111
# display_name: Python 3 (ipykernel)
1212
# language: python
@@ -97,8 +97,8 @@
9797
domain = mesh.create_unit_square(MPI.COMM_WORLD, 8, 8, mesh.CellType.quadrilateral)
9898
# -
9999

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

0 commit comments

Comments
 (0)