Skip to content

Commit

Permalink
Merge pull request #481 from lattice/hotfix/twisted-clover
Browse files Browse the repository at this point in the history
Fixes a bug in asymmetric preconditioning
  • Loading branch information
maddyscientist authored Jun 13, 2016
2 parents ebf6f1e + 476063b commit bc696cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dirac_twisted_clover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,15 +333,15 @@ namespace quda {
twistedCloverDslashCuda(&static_cast<cudaColorSpinorField&>(out), *gauge, cs, cI,
static_cast<cudaColorSpinorField*>(tmp1), QUDA_EVEN_PARITY, dagger,
&static_cast<const cudaColorSpinorField&>(in),
QUDA_DEG_DSLASH_CLOVER_TWIST_XPAY, a, kappa, 0.0, 0.0, commDim, profile);
QUDA_DEG_DSLASH_CLOVER_TWIST_XPAY, a, kappa2, 0.0, 0.0, commDim, profile);

flops += (1320ll+96ll)*in.Volume();
} else if (matpcType == QUDA_MATPC_ODD_ODD_ASYMMETRIC) {
Dslash(*tmp1, in, QUDA_EVEN_PARITY);
twistedCloverDslashCuda(&static_cast<cudaColorSpinorField&>(out), *gauge, cs, cI,
static_cast<const cudaColorSpinorField*>(tmp1), QUDA_ODD_PARITY, dagger,
&static_cast<const cudaColorSpinorField&>(in),
QUDA_DEG_DSLASH_CLOVER_TWIST_XPAY, a, kappa, 0.0, 0.0, commDim, profile);
QUDA_DEG_DSLASH_CLOVER_TWIST_XPAY, a, kappa2, 0.0, 0.0, commDim, profile);
flops += (1320ll+96ll)*in.Volume();
}else { // symmetric preconditioning
errorQuda("Invalid matpcType");
Expand Down

0 comments on commit bc696cf

Please sign in to comment.