From f0356b92ecd39bf7577cc3b48f169e7b8c26f652 Mon Sep 17 00:00:00 2001 From: maddyscientist Date: Mon, 18 Dec 2023 12:54:07 -0800 Subject: [PATCH] Fix compile warning in last commit --- lib/clover_force.cpp | 2 +- tests/clover_force_test.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/clover_force.cpp b/lib/clover_force.cpp index 7a36b2f547..a2f763d21f 100644 --- a/lib/clover_force.cpp +++ b/lib/clover_force.cpp @@ -12,7 +12,7 @@ namespace quda { const std::vector &coeff, const std::vector> &epsilon, double sigma_coeff, bool detratio, QudaInvertParam &inv_param) { - if (!inv_param.matpc_type == QUDA_MATPC_EVEN_EVEN_ASYMMETRIC & !inv_param.matpc_type == QUDA_MATPC_ODD_ODD_ASYMMETRIC) + if (inv_param.matpc_type != QUDA_MATPC_EVEN_EVEN_ASYMMETRIC && inv_param.matpc_type != QUDA_MATPC_ODD_ODD_ASYMMETRIC) errorQuda("MatPC type %d not supported", inv_param.matpc_type); QudaParity parity = inv_param.matpc_type == QUDA_MATPC_EVEN_EVEN_ASYMMETRIC ? QUDA_EVEN_PARITY : QUDA_ODD_PARITY; diff --git a/tests/clover_force_test.cpp b/tests/clover_force_test.cpp index c583c662bc..39f340a75c 100644 --- a/tests/clover_force_test.cpp +++ b/tests/clover_force_test.cpp @@ -88,6 +88,7 @@ std::tuple clover_force_test(test_t param) quda::RNG rng(mom, 1234); + inv_param.dagger = static_cast(dagger); inv_param.num_offset = nvector; for (int i = 0; i < nvector; i++) { // Allocate memory and set pointers @@ -107,6 +108,7 @@ std::tuple clover_force_test(test_t param) } gauge_param.gauge_order = QUDA_MILC_GAUGE_ORDER; gauge_param.overwrite_mom = 1; + if (getTuning() == QUDA_TUNE_YES) computeTMCloverForceQuda(mom.data(), in.data(), in0.data(), coeff.data(), nvector, &gauge_param, &inv_param, detratio);