Skip to content

Commit

Permalink
new 2D advection diffusion example (#427)
Browse files Browse the repository at this point in the history
Co-authored-by: Sylwester Arabas <sylwester.arabas@agh.edu.pl>
Co-authored-by: Paweł Magnuszewski <47724273+pawelmagnu@users.noreply.github.com>
Co-authored-by: pawel <pawel.magnu@gmail.com>
  • Loading branch information
4 people authored Sep 7, 2024
1 parent 239aaff commit eb501f3
Show file tree
Hide file tree
Showing 5 changed files with 426 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/tests+pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ jobs:
run: |
mkdir -p /home/runner/work/_temp/_github_home/figures
mv /tmp/pytest-of-runner/pytest-current/test_run_notebooks_examples_*/fig_4.svg /home/runner/work/_temp/_github_home/figures
mv /tmp/pytest-of-runner/pytest-current/test_run_notebooks_examples_*/advection_diffusion.gif /home/runner/work/_temp/_github_home/figures
- if: ${{ github.ref == 'refs/heads/main' && matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.11'}}
uses: eine/tip@master
Expand Down
4 changes: 3 additions & 1 deletion examples/PyMPDATA_examples/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"""
PyMPDATA_examples package includes common Python modules used in PyMPDATA smoke tests
and in example notebooks (but the package wheels do not include the notebooks)
and in example notebooks (but the package wheels do not include the notebooks).
![adv_diff](https://github.com/open-atmos/PyMPDATA/releases/download/tip/advection_diffusion.gif)
"""

from importlib.metadata import PackageNotFoundError, version
Expand Down
3 changes: 3 additions & 0 deletions examples/PyMPDATA_examples/advection_diffusion_2d/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""
PyMPDATA 2D advection-diffusion example with gif creation.
"""

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions examples/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def get_long_description():
"pint",
"joblib",
"sympy",
"imageio",
],
author="https://github.com/open-atmos/PyMPDATA/graphs/contributors",
license="GPL-3.0",
Expand Down

0 comments on commit eb501f3

Please sign in to comment.