We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ed57cc commit 0f3b9dbCopy full SHA for 0f3b9db
1 file changed
devito/types/caching.py
@@ -166,6 +166,11 @@ def clear(cls, force=True):
166
# Wipe out the "true" SymPy cache
167
cache.clear_cache()
168
169
+ # Clear Scope + Dependence caches (imported here to avoid circular imports)
170
+ from devito.ir.support.basic import Scope, Dependence # noqa: E402
171
+ Scope._fetch.cache_clear()
172
+ Dependence.fetch.cache_clear()
173
+
174
# Wipe out the hidden module-private SymPy caches
175
sympy.polys.rootoftools.ComplexRootOf.clear_cache()
176
sympy.polys.domains.modularinteger._modular_integer_cache.clear()
0 commit comments