mesh-adaptation / goalie

Goal-oriented error estimation and mesh adaptation for finite element problems solved using Firedrake
Other
2 stars 0 forks source link

Tests fail #222

Open ddundo opened 1 week ago

ddundo commented 1 week ago

See https://github.com/mesh-adaptation/goalie/actions/runs/11310614359. Tests fail on the new docker image

ddundo commented 1 week ago

The issue is in conftest.py files:

from firedrake.tsfc_interface import TSFCKernel
from pyop2.global_kernel import GlobalKernel

TSFCKernel._cache.clear()
GlobalKernel._cache.clear()

Neither of these no longer have the _cache attribute. The TSFC one was easy to fix:

from firedrake.tsfc_interface import clear_cache
clear_cache()

but I couldn't find the updated way for pyop2

Edit: I think that pyop2 is now

from pyop2.caching import clear_memory_cache
from pyop2.mpi import COMM_WORLD

clear_memory_cache(COMM_WORLD)