From 2f3e2311b223fbd76c257cd7850b7deb0d429133 Mon Sep 17 00:00:00 2001 From: Evan Weinberg Date: Mon, 19 Sep 2022 09:35:28 -0700 Subject: [PATCH] Hotfix for weird heavy quark residual behavior during MG setup, incidentally fixed in feature/cheby-mg-setup already but in a broader commit so it cannot be cherry picked easily --- lib/inv_cg_quda.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/inv_cg_quda.cpp b/lib/inv_cg_quda.cpp index 8883e35b1b..78f4a09e45 100644 --- a/lib/inv_cg_quda.cpp +++ b/lib/inv_cg_quda.cpp @@ -567,7 +567,7 @@ namespace quda { } // if L2 broke down already we turn off reliable updates and restart the CG - if (ru.reliable_heavy_quark_break(L2breakdown, heavy_quark_res, heavy_quark_res_old, heavy_quark_restart)) { + if (use_heavy_quark_res && ru.reliable_heavy_quark_break(L2breakdown, heavy_quark_res, heavy_quark_res_old, heavy_quark_restart)) { break; }