1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 15:55:37 +00:00

Correction of the dagger version of the Clover

This commit is contained in:
Guido Cossu 2017-08-15 10:50:44 +01:00
parent 75ee6cfc86
commit 8d168ded4a

View File

@ -142,19 +142,22 @@ void WilsonCloverFermion<Impl>::Mooee(const FermionField &in, FermionField &out)
template <class Impl>
void WilsonCloverFermion<Impl>::MooeeDag(const FermionField &in, FermionField &out)
{
this->MooeeInternal(in, out, DaggerNo, InverseYes);
conformable(in,out);
this->MooeeInternal(in, out, DaggerYes, InverseYes);
}
template <class Impl>
void WilsonCloverFermion<Impl>::MooeeInv(const FermionField &in, FermionField &out)
{
conformable(in,out);
this->MooeeInternal(in, out, DaggerNo, InverseYes);
}
template <class Impl>
void WilsonCloverFermion<Impl>::MooeeInvDag(const FermionField &in, FermionField &out)
{
this->MooeeInternal(in, out, DaggerNo, InverseYes);
conformable(in,out);
this->MooeeInternal(in, out, DaggerYes, InverseYes);
}
template <class Impl>
@ -183,7 +186,10 @@ void WilsonCloverFermion<Impl>::MooeeInternal(const FermionField &in, FermionFie
}
std::cout << GridLogMessage << "*Clover.checkerboard " << (*Clover).checkerboard << std::endl;
if (dag){ out = adj(*Clover) * in;} else { out = *Clover * in;}
std::cout << GridLogMessage << "in.checkerboard " << in.checkerboard << std::endl;
std::cout << GridLogMessage << "out.checkerboard " << out.checkerboard << std::endl;
out = *Clover * in;
//if (dag){ out = adj(*Clover) * in;} else { out = *Clover * in;}
} // MooeeInternal
// Derivative parts