From 2eec9b05e5a529c948c966d251f28b4ffd8f1c08 Mon Sep 17 00:00:00 2001 From: Eduard Valeyev Date: Thu, 12 Dec 2024 13:41:11 -0500 Subject: [PATCH] caching GaussianConvolution1D takes into account bloch-k and D --- src/madness/mra/convolution1d.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/madness/mra/convolution1d.h b/src/madness/mra/convolution1d.h index dc96b67ccc5..3cd9768af0d 100644 --- a/src/madness/mra/convolution1d.h +++ b/src/madness/mra/convolution1d.h @@ -927,11 +927,15 @@ namespace madness { typedef typename ConcurrentHashMap > >::iterator iterator; typedef typename ConcurrentHashMap > >::datumT datumT; - static std::shared_ptr< GaussianConvolution1D > get(int k, double expnt, int m, bool periodic) { + static std::shared_ptr< GaussianConvolution1D > get(int k, double expnt, int m, bool periodic, + double bloch_k = 0.0, + unsigned int D = Convolution1D::maxD()) { hashT key = hash_value(expnt); hash_combine(key, k); hash_combine(key, m); hash_combine(key, int(periodic)); + hash_combine(key, bloch_k); + hash_combine(key, D); MADNESS_PRAGMA_CLANG(diagnostic push) MADNESS_PRAGMA_CLANG(diagnostic ignored "-Wundefined-var-template")