1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-12 20:27:06 +01:00

Full clover force correct

This commit is contained in:
Guido Cossu
2017-10-29 12:03:08 +00:00
parent f941c4ee18
commit 749189fd72
3 changed files with 15 additions and 116 deletions

View File

@ -43,12 +43,11 @@ RealD WilsonCloverFermion<Impl>::M(const FermionField &in, FermionField &out)
// Wilson term
out.checkerboard = in.checkerboard;
//this->Dhop(in, out, DaggerNo);
this->Dhop(in, out, DaggerNo);
// Clover term
Mooee(in, temp);
out= zero;
out += temp;
return norm2(out);
}
@ -60,12 +59,11 @@ RealD WilsonCloverFermion<Impl>::Mdag(const FermionField &in, FermionField &out)
// Wilson term
out.checkerboard = in.checkerboard;
//this->Dhop(in, out, DaggerYes);
this->Dhop(in, out, DaggerYes);
// Clover term
MooeeDag(in, temp);
out=zero;
out += temp;
return norm2(out);
}

View File

@ -116,7 +116,7 @@ public:
force = zero;
// Derivative of the Wilson hopping term
//this->DhopDeriv(force, X, Y, dag);
this->DhopDeriv(force, X, Y, dag);
///////////////////////////////////////////////////////////
// Clover term derivative