51 multi1d<LatticeReal>
f2(
F.size());
52 multi1d<LatticeReal>
f1(
F.size());
53 Real num_sites = QDP::Layout::vol();
55 for(
int mu=0;
mu <
F.size(); ++
mu)
58 LatticeColorMatrix F_tmp =
F[
mu];
67 f2[
mu] = Real(-2)*real(trace(F_tmp*F_tmp));
76 for(
int mu=0;
mu <
F.size(); ++
mu)
96 Real fact_tmp = Real(1)/Real(
Nd);
97 forces.
F_sq *= fact_tmp;
98 forces.
F_avg *= fact_tmp;
104 for(
int mu=1;
mu <
F.size(); ++
mu)
120 namespace ForceMonitorEnv {
133 QDPIO::cout <<
"Monitoring force" << std::endl;
136 write(xml_out, path, mon);
Helper function for calculating forces.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams ¶m)
Writer parameters.
void taproj(LatticeColorMatrix &a)
Take the traceless antihermitian projection of a color matrix.
void forceMonitorCalc(const multi1d< LatticeColorMatrix > &F, ForceMonitors &forces)
Helper function for calculating forces.
void monitorForces(XMLWriter &xml_out, const std::string &path, const multi1d< LatticeColorMatrix > &F)
Calculate and write out forces.
static bool monitorForcesP
Asqtad Staggered-Dirac operator.
push(xml_out,"Condensates")
void setForceMonitoring(bool monitorP)
Diagnostics about the forces, per direction and total.
multi1d< Real > F_max_dir
multi1d< Real > F_avg_dir
multi1d< Real > F_max_dt_dir
Take the traceless antihermitian projection of a color matrix.
static INTERNAL_PRECISION F