50 multi1d<int> boundary;
74 XMLReader inputtop(xml, path);
88 QDPIO::cerr <<
"Error reading IO version: " << e << std::endl;
92 XMLReader paramtop(inputtop,
"param");
105 QDPIO::cerr <<
"Error parameters: " << e << std::endl;
118 read(inputtop,
"Cfg", input.
cfg);
122 QDPIO::cerr <<
"Error gauge name data: " << e << std::endl;
137 int main(
int argc,
char **argv)
142 QDPIO::cout <<
"Measure the Wilson flow " << std::endl;
143 QDPIO::cout <<
"Calculation for SU(" << Nc <<
")" << std::endl;
154 xml_in.open(in_name);
158 QDPIO::cerr <<
"Error reading input file " << in_name << std::endl;
159 QDPIO::cerr <<
"The input file name can be passed via the -i flag " << std::endl;
160 QDPIO::cerr <<
"The default name is ./DATA" << std::endl;
166 read(xml_in,
"/WilsonFlow", input);
174 multi1d<LatticeColorMatrix>
u(
Nd);
178 XMLReader gauge_file_xml, gauge_xml;
188 push(xml_out,
"wilsonFlow");
191 write(xml_out,
"Input", xml_in);
194 push(xml_out,
"Output_version");
195 write(xml_out,
"out_version", 1);
202 MesPlq(xml_out,
"Observables",
u);
212 multi1d<LatticeColorMatrix> u_trans(
Nd);
215 LatticeColorMatrix v ;
220 for(
int dir = 0 ; dir <
Nd ; ++dir)
222 u_trans[dir] = v*
u[dir]*adj(shift(v,
FORWARD,dir)) ;
223 u[dir] = u_trans[dir] ;
226 QDPIO::cout <<
"Random gauge transform done" << std::endl;
231 QDPIO::cout <<
"NO RANDOM GAUGE TRANSFORM" << std::endl;
238 multi1d<bool> smear_in_this_dirP(
Nd);
240 smear_in_this_dirP[0] =
true;
241 smear_in_this_dirP[1] =
true;
242 smear_in_this_dirP[2] =
true;
243 smear_in_this_dirP[3] =
false;
254 QDPIO::cout <<
"End of measurements " << std::endl;
Primary include file for CHROMA in application codes.
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams ¶m)
Read parameters.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams ¶m)
Writer parameters.
void unitarityCheck(const multi1d< LatticeColorMatrixF3 > &u)
Check the unitarity of color matrix in SU(N)
void gaugeStartup(XMLReader &gauge_file_xml, XMLReader &gauge_xml, multi1d< LatticeColorMatrix > &u, Cfg_t &cfg)
Initialize the gauge fields.
void wilson_flow(XMLWriter &xml, multi1d< LatticeColorMatrix > &u, int nstep, Real wflow_eps, int t_dir, const multi1d< bool > &smear_dirs)
Compute the Wilson flow.
bool registerAll()
Register all the factories.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
static multi1d< LatticeColorMatrix > u
push(xml_out,"Condensates")
void initialize(int *argc, char ***argv)
Chroma initialisation routine.
void finalize(void)
Chroma finalization routine.
void reunit(LatticeColorMatrixF3 &xa)
std::string getXMLInputFileName()
Get input file name.
void MesPlq(const multi1d< LatticeColorMatrixF3 > &u, multi2d< Double > &plane_plaq, Double &link)
XMLFileWriter & getXMLOutputInstance()
Get xml output instance.
Gauge configuration structure.
Parameters for running program.
int main(int argc, char **argv)