Skip to content

Commit 5cd36c8

Browse files
committed
Copy notebooks to the book
1 parent 24c108c commit 5cd36c8

4 files changed

Lines changed: 123 additions & 117 deletions

File tree

fdm-jupyter-book/notebooks/01_vib/vib_undamped.ipynb

Lines changed: 108 additions & 102 deletions
Large diffs are not rendered by default.

fdm-jupyter-book/notebooks/02_wave/wave1D_prog.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@
308308
"cell_type": "markdown",
309309
"metadata": {},
310310
"source": [
311-
"When this function resides in the file [`wave1D_u0.py`](src-wave/wave1D/wave1D_u0.py), one can run\n",
311+
"When this function resides in the file [`wave1D_u0.py`](https://github.com/devitocodes/devito_book/blob/master/fdm-devito-notebooks/02_wave/src-wave/wave1D/wave1D_u0.py), one can run\n",
312312
"pytest to check that all test functions with names `test_*()`\n",
313313
"in this file work:"
314314
]
@@ -718,7 +718,7 @@
718718
"`n` can be divided by 13 without a remainder. That is, the `if` test\n",
719719
"is true when `n` equals $0, 13, 26, 39, ..., 780, 801$. The associated\n",
720720
"code is included in the `plot_u` function, inside the `viz` function,\n",
721-
"in the file [`wave1D_u0.py`](src-wave/wave1D/wave1D_u0.py).\n",
721+
"in the file [`wave1D_u0.py`](https://github.com/devitocodes/devito_book/blob/master/fdm-devito-notebooks/02_wave/src-wave/wave1D/wave1D_u0.py).\n",
722722
"\n",
723723
"## Running a case\n",
724724
"<div id=\"wave:pde1:guitar:data\"></div>\n",
@@ -806,7 +806,7 @@
806806
"cell_type": "markdown",
807807
"metadata": {},
808808
"source": [
809-
"The associated program has the name [`wave1D_u0.py`](src-wave/wave1D/wave1D_u0.py). Run\n",
809+
"The associated program has the name [`wave1D_u0.py`](https://github.com/devitocodes/devito_book/blob/master/fdm-devito-notebooks/02_wave/src-wave/wave1D/wave1D_u0.py). Run\n",
810810
"the program and watch the [movie of the vibrating string](mov-wave/guitar_C0.8/movie.html).\n",
811811
"The string should ideally consist of straight segments, but these are\n",
812812
"somewhat wavy due to numerical approximation. Run the case with the\n",
@@ -2586,9 +2586,9 @@
25862586
"name": "python",
25872587
"nbconvert_exporter": "python",
25882588
"pygments_lexer": "ipython3",
2589-
"version": "3.8.3"
2589+
"version": "3.8.2"
25902590
}
25912591
},
25922592
"nbformat": 4,
25932593
"nbformat_minor": 4
2594-
}
2594+
}

fdm-jupyter-book/notebooks/03_diffu/diffu_rw.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@
243243
},
244244
{
245245
"cell_type": "code",
246-
"execution_count": 1,
246+
"execution_count": 4,
247247
"metadata": {},
248248
"outputs": [],
249249
"source": [
@@ -252,7 +252,7 @@
252252
},
253253
{
254254
"cell_type": "code",
255-
"execution_count": 2,
255+
"execution_count": 21,
256256
"metadata": {},
257257
"outputs": [],
258258
"source": [
@@ -317,7 +317,7 @@
317317
},
318318
{
319319
"cell_type": "code",
320-
"execution_count": 7,
320+
"execution_count": 1,
321321
"metadata": {},
322322
"outputs": [],
323323
"source": [
@@ -683,7 +683,7 @@
683683
},
684684
{
685685
"cell_type": "code",
686-
"execution_count": 9,
686+
"execution_count": 5,
687687
"metadata": {},
688688
"outputs": [],
689689
"source": [
@@ -765,7 +765,7 @@
765765
},
766766
{
767767
"cell_type": "code",
768-
"execution_count": 10,
768+
"execution_count": 9,
769769
"metadata": {},
770770
"outputs": [],
771771
"source": [
@@ -790,7 +790,7 @@
790790
},
791791
{
792792
"cell_type": "code",
793-
"execution_count": 11,
793+
"execution_count": 10,
794794
"metadata": {},
795795
"outputs": [
796796
{
@@ -825,7 +825,7 @@
825825
"run, and it can be very difficult to spot bugs through averaged statistical\n",
826826
"quantities.\n",
827827
"\n",
828-
"A full test suite for this notebook, along with the rest of the functions for random walks, can be found in [`random_walk.py`](src-diffu/random_walk.py).\n",
828+
"A full test suite for this notebook, along with the rest of the functions for random walks, can be found in [`random_walk.py`](https://github.com/devitocodes/devito_book/blob/master/fdm-devito-notebooks/03_diffu/src-diffu/random_walk.py).\n",
829829
"\n",
830830
"## Demonstration of multiple walks\n",
831831
"\n",
@@ -1315,7 +1315,7 @@
13151315
"name": "python",
13161316
"nbconvert_exporter": "python",
13171317
"pygments_lexer": "ipython3",
1318-
"version": "3.8.3"
1318+
"version": "3.8.2"
13191319
}
13201320
},
13211321
"nbformat": 4,

fdm-jupyter-book/notebooks/04_advec/advec.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@
670670
"source": [
671671
"A special scheme is needed to compute $u^1$, but we leave that problem for\n",
672672
"now. Anyway, this special scheme can be found in \n",
673-
"[`advec1D.py`](src-advec/advec1D.py).\n",
673+
"[`advec1D.py`](https://github.com/devitocodes/devito_book/blob/master/fdm-devito-notebooks/04_advec/src-advec/advec1D.py).\n",
674674
"\n",
675675
"### Implementation\n",
676676
"\n",
@@ -1405,7 +1405,7 @@
14051405
"metadata": {},
14061406
"source": [
14071407
"The complete code is found in the file\n",
1408-
"[`advec1D.py`](src-advec/advec1D.py).\n",
1408+
"[`advec1D.py`](https://github.com/devitocodes/devito_book/blob/master/fdm-devito-notebooks/04_advec/src-advec/advec1D.py).\n",
14091409
"\n",
14101410
"## A Crank-Nicolson discretization in time and centered differences in space\n",
14111411
"<div id=\"advec:1D:CN\"></div>\n",

0 commit comments

Comments
 (0)