Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates for latest tlm_adjoint #129

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Draft
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
14 changes: 7 additions & 7 deletions .github/workflows/test-fenics_ice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:

jobs:
test:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
timeout-minutes: 60
env:
OMP_NUM_THREADS: 1
Expand All @@ -27,7 +27,7 @@ jobs:
- name: Checkout tlm_adjoint
uses: actions/checkout@v4
with:
repository: 'EdiGlacUQ/tlm_adjoint'
repository: 'tlm-adjoint/tlm_adjoint'
path: 'tlm_adjoint'
- name: Install dependencies
run: |
Expand All @@ -36,12 +36,12 @@ jobs:
python3-matplotlib python3-netcdf4 python3-numpy python3-pytest \
python3-pytest-dependency python3-pytest-mpi \
python3-pytest-order python3-pytest-timeout python3-scipy \
python3-sympy
python3-sympy python3-toml
- name: Run tests
run: |
export PYTHONPATH=$PYTHONPATH:$GITHUB_WORKSPACE/tlm_adjoint
cd fenics_ice
pytest-3 -v --order-scope=module --timeout=300 --timeout-method=thread
pytest-3 -v -k tv --order-scope=module --timeout=300 --timeout-method=thread
mpirun -n 2 pytest-3 -v --order-scope=module --timeout=300 --timeout-method=thread
mpirun -n 2 pytest-3 -m key --key=smith --timeout=300 --timeout-method=thread
pytest -v --order-scope=module --timeout=300 --timeout-method=thread
pytest -v -k tv --order-scope=module --timeout=300 --timeout-method=thread
mpirun -n 2 pytest -v --order-scope=module --timeout=300 --timeout-method=thread
mpirun -n 2 pytest -m key --key=smith --timeout=300 --timeout-method=thread
2 changes: 2 additions & 0 deletions fenics_ice/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ def _Vector_inner(self, /, other):
_Vector__inner_orig = cpp_PETScVector.inner
cpp_PETScVector.inner = _Vector_inner
del _Vector_inner, cpp_PETScVector

from fenics import Vector
Loading
Loading