15 namespace PlaqPlusAdjPowerGaugeActEnv
48 XMLReader paramtop(xml_in, path);
54 read(paramtop,
"q",
q);
57 QDPIO::cerr <<
"Error reading XML: " << e << std::endl;
67 multi2d<LatticeComplex> plq;
82 act_A +=
sum(pow(
one - localNorm2(plq[
mu][
nu]), q2));
104 const multi1d<LatticeColorMatrix>&
u =
state->getLinks();
105 Real third = Real(1) / Real(Nc);
131 int mu,
int cb)
const
133 QDPIO::cerr << __func__ <<
": staple not possible\n";
145 multi2d<LatticeComplex> plq;
148 const multi1d<LatticeColorMatrix>&
u =
state->getLinks();
149 multi1d<LatticeColorMatrix> deriv_fun(
Nd);
150 multi1d<LatticeColorMatrix> deriv_adj(
Nd);
163 if (
mu ==
nu)
continue;
165 const LatticeReal&
plaq = pow(
one - localNorm2(plq[
mu][
nu]), q2-1);
174 deriv_fun[
mu] += up_plq + down_plq;
176 deriv_adj[
mu] +=
plaq * up_plq*conj(trace(up_plq));
177 deriv_adj[
mu] += downp * down_plq*conj(trace(down_plq));
183 ds_u[
mu] += (-Real(q2) *
param.
gamma/Real(Nc*Nc)) * deriv_adj[
mu];
Primary include file for CHROMA library code.
Abstract base class for gauge actions.
virtual const GaugeBC< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > & getGaugeBC() const
Return the gauge BC object for this action.
virtual void zero(P &ds_u) const =0
Zero some gauge-like field in place on the masked links.
Support class for fermion actions and linear operators.
Class for counted reference semantics.
void siteAction(multi2d< LatticeComplex > &site_act, const Handle< GaugeState< P, Q > > &state) const
Compute the site-level action.
void staple(LatticeColorMatrix &result, const Handle< GaugeState< P, Q > > &state, int mu, int cb) const
Compute staple.
void deriv(multi1d< LatticeColorMatrix > &result, const Handle< GaugeState< P, Q > > &state) const
Compute dS/dU.
Double S(const Handle< GaugeState< P, Q > > &state) const
Compute the actions.
All gauge create-state method.
Gauge create state factory.
Fermion action factories.
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams ¶m)
Read parameters.
GaugeAction< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > * createGaugeAct(XMLReader &xml, const std::string &path)
static bool registered
Local registration flag.
const std::string name
Name to be used.
Handle< CreateGaugeState< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > > reader(XMLReader &xml_in, const std::string &path)
Helper function for the CreateGaugeState readers.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
static multi1d< LatticeColorMatrix > u
const WilsonTypeFermAct< multi1d< LatticeFermion > > Handle< const ConnectState > state
FloatingPoint< double > Double
Plaquette plus a power of an adjoint gauge action.
Params()
Base Constructor.