Skip to content

Commit 5c53651

Browse files
authored
Merge pull request #5 from jorgensd/dokken/ml-p1
Update ns code
2 parents 69f79ab + c797247 commit 5c53651

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

chapter2/ns_code2.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
"To be able to solve this problem efficiently and ensure numerical stability, we will substitute our first order backward difference scheme with a Crank-Nicholson discretization in time, and a semi-implicit Adams-Bashforth approximation of the non-linear term.\n",
1414
"\n",
1515
"```{admonition} Computationally demanding demo\n",
16-
"This demo is computationally demanding, with a run-time up to 15 minutes, as it is using parameters from the DFG 2D-3 benchmark, which consists of 12800 time steps. It is adviced to download this demo and not run it in a browser. This runtime of the demo can be decreased by using 2 or 3 mpi processes.\n",
16+
"This demo is computationally demanding, with a run-time up to 15 minutes, as it is using parameters from the DFG 2D-3 benchmark, which consists of 12800 time steps.\n",
17+
"It is adviced to download this demo and not run it in a browser.\n",
18+
"This runtime of the demo can be decreased by using 2 or 3 mpi processes.\n",
1719
"```\n",
1820
"\n",
1921
"The computational geometry we would like to use is\n",

chapter2/ns_code2.py

Lines changed: 4 additions & 2 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.16.4
9+
# jupytext_version: 1.16.6
1010
# kernelspec:
1111
# display_name: Python 3 (ipykernel)
1212
# language: python
@@ -22,7 +22,9 @@
2222
# To be able to solve this problem efficiently and ensure numerical stability, we will substitute our first order backward difference scheme with a Crank-Nicholson discretization in time, and a semi-implicit Adams-Bashforth approximation of the non-linear term.
2323
#
2424
# ```{admonition} Computationally demanding demo
25-
# This demo is computationally demanding, with a run-time up to 15 minutes, as it is using parameters from the DFG 2D-3 benchmark, which consists of 12800 time steps. It is adviced to download this demo and not run it in a browser. This runtime of the demo can be increased by using 2 or 3 mpi processes.
25+
# This demo is computationally demanding, with a run-time up to 15 minutes, as it is using parameters from the DFG 2D-3 benchmark, which consists of 12800 time steps.
26+
# It is adviced to download this demo and not run it in a browser.
27+
# This runtime of the demo can be decreased by using 2 or 3 mpi processes.
2628
# ```
2729
#
2830
# The computational geometry we would like to use is

0 commit comments

Comments
 (0)