Skip to content

Commit 2aded20

Browse files
committed
Merge branch 'master' of github.com:devitocodes/devito_book into jakubbober-advec
2 parents 7d7eed8 + 623ed68 commit 2aded20

22,498 files changed

Lines changed: 20794 additions & 1105910 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy-jupyter-book.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Workflow for deploying fdm-jupyter-book to GitHub Pages (https://www.devitoproject.org/devito_book/)
12
name: Deploy Jupyter Book
23

34
# Only run this when the master branch changes

.github/workflows/jupyter-notebooks.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Workflow for checking notebooks in fdm-devito-notebooks are compiling using nbval
12
name: Jupyter Notebooks
23

34
on:
@@ -69,9 +70,18 @@ jobs:
6970
pip install -e .
7071
pip install matplotlib
7172
pip install --user git+https://github.com/devitocodes/devito.git
73+
- name: Vibration ODE notebooks (1.1 to 1.8)
74+
run: |
75+
$RUN_CMD python -m pytest -W ignore::DeprecationWarning --nbval --cov . --cov-config=.coveragerc --cov-report=xml:vib_coverage.xml $SKIP fdm-devito-notebooks/01_vib/vib_undamped.ipynb
7276
- name: Waves notebooks (2.1 and 2.2)
7377
run: |
7478
$RUN_CMD python -m pytest -W ignore::DeprecationWarning --nbval --cov . --cov-config=.coveragerc --cov-report=xml:waves_coverage.xml $SKIP fdm-devito-notebooks/02_wave/wave1D_fd1.ipynb
79+
- name: Waves notebooks (2.3 to 2.5)
80+
run: |
81+
$RUN_CMD python -m pytest -W ignore::DeprecationWarning --nbval --cov . --cov-config=.coveragerc --cov-report=xml:waves_coverage.xml $SKIP fdm-devito-notebooks/02_wave/wave1D_prog.ipynb
82+
- name: Diffusion notebooks (3.7)
83+
run: |
84+
$RUN_CMD python -m pytest -W ignore::DeprecationWarning --nbval --cov . --cov-config=.coveragerc --cov-report=xml:diffu_coverage.xml $SKIP fdm-devito-notebooks/03_diffu/diffu_rw.ipynb
7585
- name: Upload coverage to Codecov
7686
uses: codecov/codecov-action@v1.0.6
7787
with:

.github/workflows/verification.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Workflow for running verification tests from original textbook on Devito functions
12
name: Verification
23

34
on:
@@ -71,10 +72,16 @@ jobs:
7172
pip install -e .
7273
pip install matplotlib
7374
pip install --user git+https://github.com/devitocodes/devito.git
74-
# - name: Waves (2.1 to 2.4)
75-
# run: |
76-
# cd fdm-devito-notebooks/wave/src-wave/wave1D/devito
77-
# $RUN_CMD py.test -s -v $SKIP wave1D_u0.py::test_quadratic wave1D_u0.py::test_constant
75+
- name: Waves (2.1 to 2.5)
76+
run: |
77+
cd fdm-devito-notebooks/02_wave/src-wave/wave1D
78+
$RUN_CMD python -m pytest -W ignore::DeprecationWarning -s -v --cov . --cov-config=.coveragerc --cov-report=xml:waves_coverage.xml $SKIP wave1D_u0.py::test_constant
79+
- name: Diffusion (3.7)
80+
run: |
81+
cd fdm-devito-notebooks/03_diffu/src-diffu
82+
$RUN_CMD python -m pytest -W ignore::DeprecationWarning -s -v --cov . --cov-config=.coveragerc --cov-report=xml:diffu_coverage.xml $SKIP random_walk.py
83+
84+
7885
- name: Upload coverage to Codecov
7986
uses: codecov/codecov-action@v1.0.6
8087
with:

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
![Jupyter Notebooks](https://github.com/devitocodes/devito_book/workflows/Jupyter%20Notebooks/badge.svg)
88
![Verification](https://github.com/devitocodes/devito_book/workflows/Verification/badge.svg)
99
![Deploy Jupyter Book](https://github.com/devitocodes/devito_book/workflows/Deploy%20Jupyter%20Book/badge.svg)
10-
[![Slack Status](https://img.shields.io/badge/chat-on%20slack-%2336C5F0)](https://opesci-slackin.now.sh)
10+
[![Slack Status](https://img.shields.io/badge/chat-on%20slack-%2336C5F0)](https://devitocodes.slack.com/join/shared_invite/zt-gtd2yxj9-Y31YKk_7lr9AwfXeL2iMFg#/)
1111

1212

1313
## The Devito Book
@@ -21,11 +21,10 @@ This work is licensed under a
2121

2222
### Directory structure
2323

24-
A summary of the most important subdirectories of this repository is as follows:
24+
The most important subdirectories in this repository are:
2525

26-
* `doc` and `src` contain the documents and source code for the [original book](https://github.com/hplgit/fdm-book)
27-
* `fdm-devito-notebooks` contains Jupyter notebooks of the original book with Devito implementations (WIP)
28-
* `fdm-jupyter-book` contains the completed Jupyter notebooks from `fdm-devito-notebooks`, deployed using GitHub pages [here](https://devitoproject.org/devito_book)
26+
* `fdm-devito-notebooks`, which contains the Jupyter notebooks from the original book with Devito implementations (WIP)
27+
* `fdm-jupyter-book`, which contains the **completed** Jupyter notebooks from `fdm-devito-notebooks`, deployed using GitHub pages [here](https://devitoproject.org/devito_book)
2928

3029
### How to use the Devito Book
3130

doc/.src/book/.dict4spell.txt

Lines changed: 0 additions & 56 deletions
This file was deleted.

doc/.src/book/2DO

Lines changed: 0 additions & 13 deletions
This file was deleted.

doc/.src/book/backcover.do.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

doc/.src/book/book.do.txt

Lines changed: 0 additions & 124 deletions
This file was deleted.

doc/.src/book/clean.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

doc/.src/book/exer-advec

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)