Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/mpi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@ jobs:
sudo apt-get update && sudo apt-get install -y libhdf5-mpi$_ch-dev pkg-config
echo NUMBA_THREADING_LAYER=omp >> $GITHUB_ENV
- if: startsWith(matrix.platform, 'macos-')
run: brew install hdf5-mpi && echo HDF5_DIR=/opt/homebrew >> $GITHUB_ENV
run: |
brew install hdf5-mpi
echo HDF5_DIR=$(brew --prefix hdf5-mpi) >> $GITHUB_ENV
echo DYLD_FALLBACK_LIBRARY_PATH=$(brew --prefix hdf5-mpi)/lib:$DYLD_FALLBACK_LIBRARY_PATH >> $GITHUB_ENV

- if: matrix.platform == 'macos-14'
run: echo DYLD_FALLBACK_LIBRARY_PATH=/opt/homebrew/lib:/usr/local/lib:/usr/lib:$DYLD_FALLBACK_LIBRARY_PATH >> $GITHUB_ENV
- run: python -We -c "import PyMPDATA_MPI"
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
needs: [ precommit, pylint, devops ]
strategy:
matrix:
python-version: ["3.10", "3.13"]
python-version: ["3.10", "3.13.12"]
runs-on: ubuntu-latest
env:
NUMBA_DISABLE_JIT: 1
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest, macos-15-intel, macos-14, windows-latest]
python-version: ["3.10", "3.13"]
python-version: ["3.10", "3.13.12"]
exclude:
- platform: macos-14
python-version: "3.10"
Expand Down Expand Up @@ -154,7 +154,7 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest, macos-15-intel, macos-14, windows-latest]
python-version: ["3.10", "3.13"]
python-version: ["3.10", "3.13.12"]
fail-fast: false
runs-on: ${{ matrix.platform }}
steps:
Expand Down Expand Up @@ -191,7 +191,7 @@ jobs:
NUMBA_OPT: 1
run: python -m pytest --durations=10 -p no:unraisableexception -We tests/devops_tests/test_notebooks.py

- if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.13'}}
- if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.13.12'}}
run: |
mkdir -p /home/runner/work/_temp/_github_home/figures
rm /tmp/pytest-of-runner/pytest-current/test_run_notebooks_examples_Pycurrent
Expand All @@ -206,7 +206,7 @@ jobs:
# with:
# limit-access-to-actor: true

- if: ${{ github.ref == 'refs/heads/main' && matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.13'}}
- if: ${{ github.ref == 'refs/heads/main' && matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.13.12'}}
uses: eine/tip@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
9,846 changes: 9,815 additions & 31 deletions examples/PyMPDATA_examples/advection_diffusion_1d/demo.ipynb

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -504,14 +504,10 @@
},
"cell_type": "code",
"source": [
"try:\n",
" vtu_filename = [f for f in os.listdir(\"./\") if \"vtu\" in f and \"celldata\" not in f][0]\n",
" mesh = meshio.read(vtu_filename)\n",
" trixi_points = ((mesh.points[:,:2] + 1)*SETUP[\"nx\"]*SETUP[\"polydeg\"]/2).round().astype(np.int16)\n",
" assert trixi_points.shape[0] == SETUP[\"nx\"]**2 * (SETUP[\"polydeg\"] + 1)**2\n",
"except Exception as e:\n",
" e.args += (list(os.walk(os.path.curdir)),)\n",
" raise e"
"vtu_filename = [f for f in os.listdir(\"./\") if \"vtu\" in f and \"celldata\" not in f][0]\n",
"mesh = meshio.read(vtu_filename)\n",
"trixi_points = ((mesh.points[:,:2] + 1)*SETUP[\"nx\"]*SETUP[\"polydeg\"]/2).round().astype(np.int16)\n",
"assert trixi_points.shape[0] == SETUP[\"nx\"]**2 * (SETUP[\"polydeg\"] + 1)**2\n"
],
"id": "451911db51e18682",
"outputs": [],
Expand All @@ -526,14 +522,9 @@
},
"cell_type": "code",
"source": [
"try:\n",
" trixi_output = np.zeros_like(pympdata_result_state)\n",
" for i in range(trixi_points.shape[0]):\n",
" trixi_output[trixi_points[i][0], trixi_points[i][1]] = mesh.point_data['scalar'][i][0]\n",
"except Exception as e:\n",
" e.args += (list(mesh.point_data.keys()),)\n",
" e.args += (list(mesh.points.shape),)\n",
" raise e"
"trixi_output = np.zeros_like(pympdata_result_state)\n",
"for i in range(trixi_points.shape[0]):\n",
" trixi_output[trixi_points[i][0], trixi_points[i][1]] = mesh.point_data['scalar'][i][0]\n"
],
"id": "58595cff705f196c",
"outputs": [],
Expand Down
Loading