Skip to content

Commit 44bcd99

Browse files
Merge pull request #1324 from lattice/hotfix/heavy-quark-mg-setup
Hotfix for weird heavy quark residual behavior during MG setup
2 parents 16450e3 + 2f3e231 commit 44bcd99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/inv_cg_quda.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ namespace quda {
567567
}
568568

569569
// if L2 broke down already we turn off reliable updates and restart the CG
570-
if (ru.reliable_heavy_quark_break(L2breakdown, heavy_quark_res, heavy_quark_res_old, heavy_quark_restart)) {
570+
if (use_heavy_quark_res && ru.reliable_heavy_quark_break(L2breakdown, heavy_quark_res, heavy_quark_res_old, heavy_quark_restart)) {
571571
break;
572572
}
573573

0 commit comments

Comments
 (0)