Skip to content

Commit

Permalink
#222: Fix pyop2 cache clear 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ddundo committed Oct 14, 2024
1 parent 73e38f4 commit 1a83733
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def pytest_runtest_teardown(item, nextitem):
"""
from firedrake.tsfc_interface import clear_cache
from pyop2.caching import clear_memory_cache
from pyop2.mpi import COMM_WORLD

clear_cache()
clear_memory_cache()
clear_memory_cache(COMM_WORLD)
3 changes: 2 additions & 1 deletion test_adjoint/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,10 @@ def pytest_runtest_teardown(item, nextitem):
"""
from firedrake.tsfc_interface import clear_cache
from pyop2.caching import clear_memory_cache
from pyop2.mpi import COMM_WORLD

clear_cache()
clear_memory_cache()
clear_memory_cache(COMM_WORLD)


@pytest.fixture(autouse=True)
Expand Down

0 comments on commit 1a83733

Please sign in to comment.