2017-03-27 07:12:57 +01:00
|
|
|
/*************************************************************************************
|
2017-03-24 03:43:28 +00:00
|
|
|
|
2017-03-27 07:12:57 +01:00
|
|
|
Grid physics library, www.github.com/paboyle/Grid
|
2017-03-24 03:43:28 +00:00
|
|
|
|
2017-03-27 07:12:57 +01:00
|
|
|
Source file: ./lib/qcd/action/fermion/WilsonCloverFermion.cc
|
2017-03-24 03:43:28 +00:00
|
|
|
|
2017-03-27 07:12:57 +01:00
|
|
|
Copyright (C) 2017
|
2017-03-24 03:43:28 +00:00
|
|
|
|
2017-03-27 07:12:57 +01:00
|
|
|
Author: paboyle <paboyle@ph.ed.ac.uk>
|
|
|
|
Author: Guido Cossu <guido.cossu@ed.ac.uk>
|
2017-03-24 03:43:28 +00:00
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License along
|
|
|
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
|
|
|
|
See the full license in the file "LICENSE" in the top level distribution directory
|
|
|
|
*************************************************************************************/
|
2017-03-27 07:12:57 +01:00
|
|
|
/* END LEGAL */
|
2017-03-24 03:43:28 +00:00
|
|
|
#include <Grid/Grid.h>
|
2017-04-28 15:23:34 +01:00
|
|
|
#include <Grid/Eigen/Dense>
|
2017-03-27 07:12:57 +01:00
|
|
|
#include <Grid/qcd/spin/Dirac.h>
|
2017-03-24 03:43:28 +00:00
|
|
|
|
2017-04-28 15:51:05 +01:00
|
|
|
namespace Grid
|
|
|
|
{
|
|
|
|
namespace QCD
|
|
|
|
{
|
|
|
|
|
|
|
|
// *NOT* EO
|
|
|
|
template <class Impl>
|
|
|
|
RealD WilsonCloverFermion<Impl>::M(const FermionField &in, FermionField &out)
|
|
|
|
{
|
|
|
|
// Wilson term
|
|
|
|
out.checkerboard = in.checkerboard;
|
|
|
|
this->Dhop(in, out, DaggerNo);
|
|
|
|
// Clover term
|
|
|
|
// apply the sigma and Fmunu
|
|
|
|
FermionField temp(out._grid);
|
|
|
|
Mooee(in, temp);
|
|
|
|
out += temp;
|
|
|
|
return axpy_norm(out, 4 + this->mass, in, out);
|
|
|
|
}
|
2017-04-28 15:23:34 +01:00
|
|
|
|
2017-04-28 15:51:05 +01:00
|
|
|
template <class Impl>
|
|
|
|
RealD WilsonCloverFermion<Impl>::Mdag(const FermionField &in, FermionField &out)
|
|
|
|
{
|
|
|
|
// Wilson term
|
|
|
|
out.checkerboard = in.checkerboard;
|
|
|
|
this->Dhop(in, out, DaggerYes);
|
|
|
|
// Clover term
|
|
|
|
// apply the sigma and Fmunu
|
|
|
|
FermionField temp(out._grid);
|
|
|
|
MooeeDag(in, temp);
|
|
|
|
out+=temp;
|
|
|
|
return axpy_norm(out, 4 + this->mass, in, out);
|
|
|
|
}
|
2017-03-27 07:12:57 +01:00
|
|
|
|
2017-04-28 15:51:05 +01:00
|
|
|
template <class Impl>
|
|
|
|
void WilsonCloverFermion<Impl>::ImportGauge(const GaugeField &_Umu)
|
|
|
|
{
|
2017-08-04 16:08:07 +01:00
|
|
|
WilsonFermion<Impl>::ImportGauge(_Umu);
|
2017-04-28 15:51:05 +01:00
|
|
|
GridBase *grid = _Umu._grid;
|
|
|
|
typename Impl::GaugeLinkField Bx(grid), By(grid), Bz(grid), Ex(grid), Ey(grid), Ez(grid);
|
2017-08-04 16:08:07 +01:00
|
|
|
|
2017-04-28 15:51:05 +01:00
|
|
|
// Compute the field strength terms
|
|
|
|
WilsonLoops<Impl>::FieldStrength(Bx, _Umu, Ydir, Zdir);
|
|
|
|
WilsonLoops<Impl>::FieldStrength(By, _Umu, Zdir, Xdir);
|
|
|
|
WilsonLoops<Impl>::FieldStrength(Bz, _Umu, Xdir, Ydir);
|
|
|
|
WilsonLoops<Impl>::FieldStrength(Ex, _Umu, Tdir, Xdir);
|
|
|
|
WilsonLoops<Impl>::FieldStrength(Ey, _Umu, Tdir, Ydir);
|
|
|
|
WilsonLoops<Impl>::FieldStrength(Ez, _Umu, Tdir, Zdir);
|
|
|
|
|
|
|
|
// Compute the Clover Operator acting on Colour and Spin
|
2017-08-04 16:08:07 +01:00
|
|
|
CloverTerm = fillCloverYZ(Bx);
|
|
|
|
CloverTerm += fillCloverXZ(By);
|
|
|
|
CloverTerm += fillCloverXY(Bz);
|
|
|
|
CloverTerm += fillCloverXT(Ex);
|
|
|
|
CloverTerm += fillCloverYT(Ey);
|
2017-09-24 18:32:15 +01:00
|
|
|
CloverTerm += fillCloverZT(Ez);
|
|
|
|
CloverTerm *= 0.5 * csw; // FieldStrength normalization? should be ( -i/8 ). Is it the anti-symmetric combination?
|
2017-04-28 15:51:05 +01:00
|
|
|
|
2017-10-16 01:47:33 +01:00
|
|
|
|
2017-04-28 15:51:05 +01:00
|
|
|
int lvol = _Umu._grid->lSites();
|
|
|
|
int DimRep = Impl::Dimension;
|
|
|
|
|
|
|
|
Eigen::MatrixXcd EigenCloverOp = Eigen::MatrixXcd::Zero(Ns * DimRep, Ns * DimRep);
|
|
|
|
Eigen::MatrixXcd EigenInvCloverOp = Eigen::MatrixXcd::Zero(Ns * DimRep, Ns * DimRep);
|
|
|
|
|
|
|
|
std::vector<int> lcoor;
|
|
|
|
typename SiteCloverType::scalar_object Qx = zero, Qxinv = zero;
|
|
|
|
|
2017-10-16 01:47:33 +01:00
|
|
|
|
2017-04-28 15:51:05 +01:00
|
|
|
for (int site = 0; site < lvol; site++)
|
|
|
|
{
|
|
|
|
grid->LocalIndexToLocalCoor(site, lcoor);
|
|
|
|
EigenCloverOp = Eigen::MatrixXcd::Zero(Ns * DimRep, Ns * DimRep);
|
|
|
|
peekLocalSite(Qx, CloverTerm, lcoor);
|
|
|
|
Qxinv = zero;
|
2017-10-16 01:47:33 +01:00
|
|
|
//if (csw!=0){
|
2017-04-28 15:51:05 +01:00
|
|
|
for (int j = 0; j < Ns; j++)
|
|
|
|
for (int k = 0; k < Ns; k++)
|
|
|
|
for (int a = 0; a < DimRep; a++)
|
|
|
|
for (int b = 0; b < DimRep; b++)
|
|
|
|
EigenCloverOp(a + j * DimRep, b + k * DimRep) = Qx()(j, k)(a, b);
|
2017-10-16 01:47:33 +01:00
|
|
|
// if (site==0) std::cout << "site =" << site << "\n" << EigenCloverOp << std::endl;
|
|
|
|
|
2017-04-28 15:51:05 +01:00
|
|
|
EigenInvCloverOp = EigenCloverOp.inverse();
|
2017-08-04 16:08:07 +01:00
|
|
|
//std::cout << EigenInvCloverOp << std::endl;
|
2017-04-28 15:51:05 +01:00
|
|
|
for (int j = 0; j < Ns; j++)
|
|
|
|
for (int k = 0; k < Ns; k++)
|
|
|
|
for (int a = 0; a < DimRep; a++)
|
|
|
|
for (int b = 0; b < DimRep; b++)
|
|
|
|
Qxinv()(j, k)(a, b) = EigenInvCloverOp(a + j * DimRep, b + k * DimRep);
|
2017-09-24 18:32:15 +01:00
|
|
|
// if (site==0) std::cout << "site =" << site << "\n" << EigenInvCloverOp << std::endl;
|
2017-10-16 01:47:33 +01:00
|
|
|
// }
|
2017-04-28 15:51:05 +01:00
|
|
|
pokeLocalSite(Qxinv, CloverTermInv, lcoor);
|
2017-10-16 01:47:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-08-04 16:08:07 +01:00
|
|
|
|
|
|
|
// Separate the even and odd parts.
|
|
|
|
pickCheckerboard(Even, CloverTermEven, CloverTerm);
|
|
|
|
pickCheckerboard( Odd, CloverTermOdd, CloverTerm);
|
|
|
|
|
2017-09-24 18:32:15 +01:00
|
|
|
|
|
|
|
pickCheckerboard(Even, CloverTermDagEven, adj(CloverTerm));
|
|
|
|
pickCheckerboard( Odd, CloverTermDagOdd, adj(CloverTerm));
|
|
|
|
|
|
|
|
|
2017-08-04 16:08:07 +01:00
|
|
|
pickCheckerboard(Even, CloverTermInvEven, CloverTermInv);
|
|
|
|
pickCheckerboard( Odd, CloverTermInvOdd, CloverTermInv);
|
2017-09-24 18:32:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
pickCheckerboard(Even, CloverTermInvDagEven, adj(CloverTermInv));
|
|
|
|
pickCheckerboard( Odd, CloverTermInvDagOdd, adj(CloverTermInv));
|
2017-08-04 16:08:07 +01:00
|
|
|
|
2017-04-28 15:51:05 +01:00
|
|
|
}
|
2017-03-27 07:12:57 +01:00
|
|
|
|
2017-04-28 15:51:05 +01:00
|
|
|
template <class Impl>
|
|
|
|
void WilsonCloverFermion<Impl>::Mooee(const FermionField &in, FermionField &out)
|
|
|
|
{
|
2017-08-04 16:08:07 +01:00
|
|
|
conformable(in,out);
|
2017-04-28 15:51:05 +01:00
|
|
|
this->MooeeInternal(in, out, DaggerNo, InverseNo);
|
|
|
|
}
|
2017-04-28 15:23:34 +01:00
|
|
|
|
2017-04-28 15:51:05 +01:00
|
|
|
template <class Impl>
|
|
|
|
void WilsonCloverFermion<Impl>::MooeeDag(const FermionField &in, FermionField &out)
|
|
|
|
{
|
2017-09-24 18:32:15 +01:00
|
|
|
this->MooeeInternal(in, out, DaggerYes, InverseNo);
|
2017-04-28 15:51:05 +01:00
|
|
|
}
|
2017-04-28 15:23:34 +01:00
|
|
|
|
2017-04-28 15:51:05 +01:00
|
|
|
template <class Impl>
|
|
|
|
void WilsonCloverFermion<Impl>::MooeeInv(const FermionField &in, FermionField &out)
|
|
|
|
{
|
|
|
|
this->MooeeInternal(in, out, DaggerNo, InverseYes);
|
|
|
|
}
|
2017-03-24 03:43:28 +00:00
|
|
|
|
2017-04-28 15:51:05 +01:00
|
|
|
template <class Impl>
|
|
|
|
void WilsonCloverFermion<Impl>::MooeeInvDag(const FermionField &in, FermionField &out)
|
|
|
|
{
|
2017-09-24 18:32:15 +01:00
|
|
|
this->MooeeInternal(in, out, DaggerYes, InverseYes);
|
2017-04-28 15:51:05 +01:00
|
|
|
}
|
2017-04-28 15:23:34 +01:00
|
|
|
|
2017-04-28 15:51:05 +01:00
|
|
|
template <class Impl>
|
|
|
|
void WilsonCloverFermion<Impl>::MooeeInternal(const FermionField &in, FermionField &out, int dag, int inv)
|
|
|
|
{
|
|
|
|
out.checkerboard = in.checkerboard;
|
|
|
|
CloverFieldType *Clover;
|
2017-08-04 16:08:07 +01:00
|
|
|
assert(in.checkerboard == Odd || in.checkerboard == Even);
|
|
|
|
|
2017-09-24 18:32:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (dag){
|
|
|
|
if (in._grid->_isCheckerBoarded){
|
|
|
|
if (in.checkerboard == Odd){
|
2017-10-16 01:47:33 +01:00
|
|
|
// std::cout << "Calling clover term adj Odd" << std::endl;
|
2017-09-24 18:32:15 +01:00
|
|
|
Clover = (inv) ? &CloverTermInvDagOdd : &CloverTermDagOdd;
|
|
|
|
|
|
|
|
/* test
|
|
|
|
int DimRep = Impl::Dimension;
|
|
|
|
Eigen::MatrixXcd A = Eigen::MatrixXcd::Zero(Ns * DimRep, Ns * DimRep);
|
|
|
|
std::vector<int> lcoor;
|
|
|
|
typename SiteCloverType::scalar_object Qx2 = zero;
|
|
|
|
GridBase *grid = in._grid;
|
|
|
|
int site = 0 ;
|
|
|
|
grid->LocalIndexToLocalCoor(site, lcoor);
|
|
|
|
peekLocalSite(Qx2, *Clover, lcoor);
|
|
|
|
for (int j = 0; j < Ns; j++)
|
|
|
|
for (int k = 0; k < Ns; k++)
|
|
|
|
for (int a = 0; a < DimRep; a++)
|
|
|
|
for (int b = 0; b < DimRep; b++)
|
|
|
|
A(a + j * DimRep, b + k * DimRep) = Qx2()(j, k)(a, b);
|
|
|
|
std::cout << "adj Odd =" << site << "\n" << A << std::endl;
|
|
|
|
end test */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
2017-10-16 01:47:33 +01:00
|
|
|
// std::cout << "Calling clover term adj Even" << std::endl;
|
2017-09-24 18:32:15 +01:00
|
|
|
Clover = (inv) ? &CloverTermInvDagEven : &CloverTermDagEven;
|
|
|
|
|
|
|
|
/* test
|
|
|
|
int DimRep = Impl::Dimension;
|
|
|
|
Eigen::MatrixXcd A = Eigen::MatrixXcd::Zero(Ns * DimRep, Ns * DimRep);
|
|
|
|
std::vector<int> lcoor;
|
|
|
|
typename SiteCloverType::scalar_object Qx2 = zero;
|
|
|
|
GridBase *grid = in._grid;
|
|
|
|
int site = 0 ;
|
|
|
|
grid->LocalIndexToLocalCoor(site, lcoor);
|
|
|
|
peekLocalSite(Qx2, *Clover, lcoor);
|
|
|
|
for (int j = 0; j < Ns; j++)
|
|
|
|
for (int k = 0; k < Ns; k++)
|
|
|
|
for (int a = 0; a < DimRep; a++)
|
|
|
|
for (int b = 0; b < DimRep; b++)
|
|
|
|
A(a + j * DimRep, b + k * DimRep) = Qx2()(j, k)(a, b);
|
|
|
|
std::cout << "adj Odd =" << site << "\n" << A << std::endl;
|
|
|
|
end test */
|
|
|
|
|
|
|
|
|
|
|
|
}
|
2017-10-16 01:47:33 +01:00
|
|
|
// std::cout << GridLogMessage << "*Clover.checkerboard " << (*Clover).checkerboard << std::endl;
|
2017-09-24 18:32:15 +01:00
|
|
|
out = *Clover * in;
|
|
|
|
} else {
|
|
|
|
Clover = (inv) ? &CloverTermInv : &CloverTerm;
|
|
|
|
out = adj(*Clover) * in;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
if (in._grid->_isCheckerBoarded){
|
|
|
|
|
|
|
|
if (in.checkerboard == Odd){
|
2017-10-16 01:47:33 +01:00
|
|
|
// std::cout << "Calling clover term Odd" << std::endl;
|
2017-08-04 16:08:07 +01:00
|
|
|
Clover = (inv) ? &CloverTermInvOdd : &CloverTermOdd;
|
2017-09-24 18:32:15 +01:00
|
|
|
} else {
|
2017-10-16 01:47:33 +01:00
|
|
|
// std::cout << "Calling clover term Even" << std::endl;
|
2017-08-04 16:08:07 +01:00
|
|
|
Clover = (inv) ? &CloverTermInvEven : &CloverTermEven;
|
2017-09-24 18:32:15 +01:00
|
|
|
}
|
|
|
|
out = *Clover * in;
|
2017-10-16 01:47:33 +01:00
|
|
|
// std::cout << GridLogMessage << "*Clover.checkerboard " << (*Clover).checkerboard << std::endl;
|
2017-09-24 18:32:15 +01:00
|
|
|
} else {
|
|
|
|
Clover = (inv) ? &CloverTermInv : &CloverTerm;
|
|
|
|
out = *Clover * in;
|
2017-05-01 11:06:21 +01:00
|
|
|
}
|
2017-09-24 18:32:15 +01:00
|
|
|
}
|
|
|
|
|
2017-04-28 15:51:05 +01:00
|
|
|
} // MooeeInternal
|
2017-04-28 15:23:34 +01:00
|
|
|
|
2017-04-28 15:51:05 +01:00
|
|
|
// Derivative parts
|
|
|
|
template <class Impl>
|
|
|
|
void WilsonCloverFermion<Impl>::MDeriv(GaugeField &mat, const FermionField &U, const FermionField &V, int dag)
|
|
|
|
{
|
2017-10-05 09:13:53 +01:00
|
|
|
|
|
|
|
|
2017-04-28 15:51:05 +01:00
|
|
|
GaugeField tmp(mat._grid);
|
2017-03-30 11:14:27 +01:00
|
|
|
|
2017-04-28 15:51:05 +01:00
|
|
|
conformable(U._grid, V._grid);
|
|
|
|
conformable(U._grid, mat._grid);
|
2017-03-30 11:14:27 +01:00
|
|
|
|
2017-04-28 15:51:05 +01:00
|
|
|
mat.checkerboard = U.checkerboard;
|
|
|
|
tmp.checkerboard = U.checkerboard;
|
2017-03-30 11:14:27 +01:00
|
|
|
|
2017-04-28 15:51:05 +01:00
|
|
|
this->DhopDeriv(mat, U, V, dag);
|
|
|
|
MooDeriv(tmp, U, V, dag);
|
|
|
|
mat += tmp;
|
|
|
|
}
|
2017-03-27 08:43:15 +01:00
|
|
|
|
2017-04-28 15:51:05 +01:00
|
|
|
// Derivative parts
|
|
|
|
template <class Impl>
|
2017-10-05 09:13:53 +01:00
|
|
|
void WilsonCloverFermion<Impl>::MooDeriv(GaugeField &mat, const FermionField &X, const FermionField &Y, int dag)
|
2017-04-28 15:51:05 +01:00
|
|
|
{
|
2017-10-05 09:13:53 +01:00
|
|
|
|
|
|
|
GridBase *grid = mat._grid;
|
|
|
|
|
2017-10-16 01:47:33 +01:00
|
|
|
//GaugeLinkField Lambdaodd(grid), Lambdaeven(grid), tmp(grid);
|
|
|
|
//Lambdaodd = zero; //Yodd*dag(Xodd)+Xodd*dag(Yodd); // I have to peek spin and decide the color structure
|
|
|
|
//Lambdaeven = zero; //Teven*dag(Xeven)+Xeven*dag(Yeven) + 2*(Dee^-1)
|
|
|
|
|
2017-10-05 09:13:53 +01:00
|
|
|
GaugeLinkField Lambda(grid), tmp(grid);
|
2017-10-16 01:47:33 +01:00
|
|
|
Lambda=zero;
|
2017-10-05 09:13:53 +01:00
|
|
|
|
|
|
|
conformable(mat._grid, X._grid);
|
|
|
|
conformable(Y._grid, X._grid);
|
|
|
|
|
|
|
|
std::vector<GaugeLinkField> C1p(Nd,grid), C2p(Nd,grid), C3p(Nd,grid), C4p(Nd,grid);
|
|
|
|
std::vector<GaugeLinkField> C1m(Nd,grid), C2m(Nd,grid), C3m(Nd,grid), C4m(Nd,grid);
|
|
|
|
std::vector<GaugeLinkField> U(Nd, mat._grid);
|
|
|
|
|
|
|
|
for (int mu = 0; mu < Nd; mu++) {
|
|
|
|
U[mu] = PeekIndex<LorentzIndex>(mat, mu);
|
|
|
|
C1p[mu]=zero; C2p[mu]=zero; C3p[mu]=zero; C4p[mu]=zero;
|
|
|
|
C1m[mu]=zero; C2m[mu]=zero; C3m[mu]=zero; C4m[mu]=zero;
|
|
|
|
}
|
|
|
|
|
2017-10-16 01:47:33 +01:00
|
|
|
/*
|
|
|
|
PARALLEL_FOR_LOOP
|
|
|
|
for (int i = 0; i < CloverTerm._grid->oSites(); i++)
|
|
|
|
{
|
|
|
|
T._odata[i]()(0, 1) = timesMinusI(F._odata[i]()());
|
|
|
|
T._odata[i]()(1, 0) = timesMinusI(F._odata[i]()());
|
|
|
|
T._odata[i]()(2, 3) = timesMinusI(F._odata[i]()());
|
|
|
|
T._odata[i]()(3, 2) = timesMinusI(F._odata[i]()());
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
for (int i=0;i<4;i++){ //spin
|
|
|
|
for(int j=0;j<4;j++){ //spin
|
|
|
|
|
|
|
|
for (int mu=0;mu<4;mu++){ //color
|
|
|
|
for (int nu=0;nu<4;nu++){ //color
|
2017-10-05 09:13:53 +01:00
|
|
|
|
|
|
|
// insertion in upper staple
|
2017-10-16 01:47:33 +01:00
|
|
|
tmp = Lambda * U[nu];
|
|
|
|
C1p[mu]+=Impl::ShiftStaple(Impl::CovShiftForward(tmp, nu, Impl::CovShiftBackward(U[mu], mu, Impl::CovShiftIdentityBackward(U[nu], nu))), mu);
|
2017-10-05 09:13:53 +01:00
|
|
|
|
2017-10-16 01:47:33 +01:00
|
|
|
tmp = Lambda * U[mu];
|
|
|
|
C2p[mu]+= Impl::ShiftStaple(Impl::CovShiftForward(U[nu], nu, Impl::CovShiftBackward(tmp, mu, Impl::CovShiftIdentityBackward(U[nu], nu))), mu);
|
2017-10-05 09:13:53 +01:00
|
|
|
|
|
|
|
tmp = Impl::CovShiftIdentityForward(Lambda, nu) * U[nu];
|
2017-10-16 01:47:33 +01:00
|
|
|
C3p[mu]+= Impl::ShiftStaple(Impl::CovShiftForward(U[nu], nu, Impl::CovShiftBackward(U[mu], mu, Impl::CovShiftIdentityBackward(tmp, nu))), mu);
|
2017-10-05 09:13:53 +01:00
|
|
|
|
|
|
|
tmp = Lambda;
|
2017-10-16 01:47:33 +01:00
|
|
|
C4p[mu]+= Impl::ShiftStaple(Impl::CovShiftForward(U[nu], nu, Impl::CovShiftBackward(U[mu], mu, Impl::CovShiftIdentityBackward(U[nu], nu))),mu) * tmp;
|
2017-10-05 09:13:53 +01:00
|
|
|
|
|
|
|
// insertion in lower staple
|
2017-10-16 01:47:33 +01:00
|
|
|
tmp = Lambda * U[nu];
|
|
|
|
C1m[mu]+= Impl::ShiftStaple(Impl::CovShiftBackward(tmp, nu, Impl::CovShiftBackward(U[mu], mu, U[nu])), mu);
|
2017-10-05 09:13:53 +01:00
|
|
|
|
2017-10-16 01:47:33 +01:00
|
|
|
tmp = Lambda * U[mu];
|
|
|
|
C2m[mu]+= Impl::ShiftStaple(Impl::CovShiftBackward(U[nu], nu, Impl::CovShiftBackward(tmp, mu, U[nu])), mu);
|
2017-10-05 09:13:53 +01:00
|
|
|
|
2017-10-16 01:47:33 +01:00
|
|
|
tmp = Lambda * U[nu];
|
|
|
|
C3m[mu]+= Impl::ShiftStaple(Impl::CovShiftBackward(U[nu], nu, Impl::CovShiftBackward(U[mu], mu, tmp)), mu);
|
2017-10-05 09:13:53 +01:00
|
|
|
|
|
|
|
tmp = Lambda;
|
2017-10-16 01:47:33 +01:00
|
|
|
C4m[mu]+= Impl::ShiftStaple(Impl::CovShiftBackward(U[nu], nu, Impl::CovShiftBackward(U[mu], mu, U[nu])), mu)* tmp;
|
2017-10-05 09:13:53 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-16 01:47:33 +01:00
|
|
|
}
|
|
|
|
}
|
2017-10-05 09:13:53 +01:00
|
|
|
|
|
|
|
//Still implementing. Have to be tested, and understood how to project EO
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-28 15:51:05 +01:00
|
|
|
}
|
2017-03-27 08:43:15 +01:00
|
|
|
|
2017-04-28 15:51:05 +01:00
|
|
|
// Derivative parts
|
|
|
|
template <class Impl>
|
|
|
|
void WilsonCloverFermion<Impl>::MeeDeriv(GaugeField &mat, const FermionField &U, const FermionField &V, int dag)
|
|
|
|
{
|
|
|
|
assert(0); // not implemented yet
|
|
|
|
}
|
2017-03-27 08:43:15 +01:00
|
|
|
|
2017-04-28 15:23:34 +01:00
|
|
|
FermOpTemplateInstantiate(WilsonCloverFermion); // now only for the fundamental representation
|
|
|
|
//AdjointFermOpTemplateInstantiate(WilsonCloverFermion);
|
|
|
|
//TwoIndexFermOpTemplateInstantiate(WilsonCloverFermion);
|
|
|
|
//GparityFermOpTemplateInstantiate(WilsonCloverFermion);
|
2017-03-24 03:43:28 +00:00
|
|
|
}
|
|
|
|
}
|