Skip to content

Commit

Permalink
Merge pull request #5 from jorgensd/dokken/ml-p1
Browse files Browse the repository at this point in the history
Update ns code
  • Loading branch information
mleoni-pf authored Feb 4, 2025
2 parents 69f79ab + c797247 commit 5c53651
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion chapter2/ns_code2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"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",
"\n",
"```{admonition} Computationally demanding demo\n",
"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",
"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",
"It is adviced to download this demo and not run it in a browser.\n",
"This runtime of the demo can be decreased by using 2 or 3 mpi processes.\n",
"```\n",
"\n",
"The computational geometry we would like to use is\n",
Expand Down
6 changes: 4 additions & 2 deletions chapter2/ns_code2.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.16.4
# jupytext_version: 1.16.6
# kernelspec:
# display_name: Python 3 (ipykernel)
# language: python
Expand All @@ -22,7 +22,9 @@
# 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.
#
# ```{admonition} Computationally demanding demo
# 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.
# 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.
# ```
#
# The computational geometry we would like to use is
Expand Down

0 comments on commit 5c53651

Please sign in to comment.