diff --git a/lib/qcd/action/fermion/CayleyFermion5Dcache.cc b/lib/qcd/action/fermion/CayleyFermion5Dcache.cc index 7393b760..560f5dcb 100644 --- a/lib/qcd/action/fermion/CayleyFermion5Dcache.cc +++ b/lib/qcd/action/fermion/CayleyFermion5Dcache.cc @@ -135,6 +135,7 @@ void CayleyFermion5D::MooeeInv (const FermionField &psi_i, FermionField { chi_i.Checkerboard()=psi_i.Checkerboard(); GridBase *grid=psi_i.Grid(); + auto psi = psi_i.View(); auto chi = chi_i.View(); @@ -183,23 +184,12 @@ void CayleyFermion5D::MooeeInvDag (const FermionField &psi_i, FermionField chi_i.Checkerboard()=psi_i.Checkerboard(); GridBase *grid=psi_i.Grid(); int Ls=this->Ls; + auto psi = psi_i.View(); auto chi = chi_i.View(); assert(psi.Checkerboard() == psi.Checkerboard()); - std::vector ueec(Ls); - std::vector deec(Ls); - std::vector leec(Ls); - std::vector ueemc(Ls); - std::vector leemc(Ls); - for(int s=0;s::MooeeInvDag (const FermionField &psi_i, FermionField chi[ss]=psi[ss]; for (int s=1;s=0;s--){ spProj5p(tmp,chi[ss+s+1]); - chi[ss+s] = chi[ss+s] - leec[s]*tmp; + chi[ss+s] = chi[ss+s] - conjugate(lee[s])*tmp; } });