From d5cdc90643976ea8a342ba98f0893aa8480d7e9d Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Tue, 1 May 2018 15:01:05 -0500 Subject: [PATCH] Fix cache key determination for direct close eval kernel --- pytential/qbx/direct.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pytential/qbx/direct.py b/pytential/qbx/direct.py index 70fa0d1a..7ad1782c 100644 --- a/pytential/qbx/direct.py +++ b/pytential/qbx/direct.py @@ -27,12 +27,18 @@ import numpy as np from sumpy.qbx import LayerPotentialBase +from pytential.version import PYTENTIAL_KERNEL_VERSION + # {{{ qbx applier on a target/center subset class LayerPotentialOnTargetAndCenterSubset(LayerPotentialBase): default_name = "qbx_tgt_ctr_subset" + def get_cache_key(self): + return super(LayerPotentialOnTargetAndCenterSubset, self).get_cache_key() + ( + PYTENTIAL_KERNEL_VERSION,) + def get_kernel(self): loopy_insns, result_names = self.get_loopy_insns_and_result_names() kernel_exprs = self.get_kernel_exprs(result_names) -- GitLab