def clear_caches(*args): """ Clear caches. Constant s or Function s can be supplied, indicating that only cached data associated with those coefficients should be cleared. """ timestepping.clear_caches(*args) da_matrix_cache.clear() dolfin_adjoint.adjglobals.adj_reset_cache() return
def ReducedFunctionalNumPy__call__(self, *args, **kwargs): timestepping.clear_caches() da_matrix_cache.clear() return __ReducedFunctionalNumPy__call__(self, *args, **kwargs)