34 int main(
int argc,
char **argv)
42 QDPIO::cerr <<
"Staggered measurement code." << std::endl;
52 QDPIO::cerr <<
"Error reading input file " << in_name << std::endl;
53 QDPIO::cerr <<
"The input file name can be passed via the -i flag " << std::endl;
54 QDPIO::cerr <<
"The default name is ./DATA" << std::endl;
66 #if defined(BUILD_CPS_ASQTAD_INVERTER)
75 read(xml_in,
"/spectrum_s/Cfg", cfg);
83 multi1d<LatticeColorMatrix>
u(
Nd);
84 XMLBufferWriter config_xml;
86 XMLReader gauge_file_xml, gauge_xml;
88 QDPIO::cout <<
"Initialize Gauge field" << std::endl;
90 QDPIO::cout <<
"Gauge field initialized!" << std::endl;
92 config_xml << gauge_xml;
98 bool do_gauge_transform =
false;
99 read(xml_in,
"/spectrum_s/Param/do_gauge_transform",do_gauge_transform );
100 if( do_gauge_transform )
103 QDPIO::cout <<
"Random gauge transform on gauge fields done." << std::endl;
111 bool gauge_invar_oper =
false;
112 read(xml_in,
"/spectrum_s/Param/gauge_invar_oper",gauge_invar_oper );
115 if( !gauge_invar_oper){
124 read(xml_in,
"/spectrum_s/Param/GFAccu", GFAccu );
125 read(xml_in,
"/spectrum_s/Param/OrPara", OrPara );
126 read(xml_in,
"/spectrum_s/Param/GFMax", GFMax );
127 read(xml_in,
"/spectrum_s/Param/j_decay",
j_decay );
131 QDPIO::cout <<
"Not using covariant shift operators.";
132 QDPIO::cout <<
"Must gauge-fix" << std::endl;
134 QDPIO::cout <<
"Starting to fix to Coulomb gauge" << std::endl;
136 QDPIO::cout <<
"No. of gauge fixing iterations =" << n_gf << std::endl;
147 unsigned long cur_update = 0;
148 meas(cur_update, xml_out);
152 QDPIO::cerr <<
"SPECTRUM_S: caught cast error" << std::endl;
157 QDPIO::cerr <<
"SPECTRUM_S: Caught Exception: " << e << std::endl;
160 catch(std::exception& e)
162 QDPIO::cerr <<
"SPECTRUM_S: Caught standard library exception: " << e.what() << std::endl;
167 QDPIO::cerr <<
"SPECTRUM_S: caught generic exception during measurement" << std::endl;
Primary include file for CHROMA in application codes.
Inline measurement of Wilson loops.
Coulomb (and Landau) gauge fixing.
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams ¶m)
Read parameters.
void unitarityCheck(const multi1d< LatticeColorMatrixF3 > &u)
Check the unitarity of color matrix in SU(N)
void rgauge(multi1d< LatticeColorMatrix > &u, LatticeColorMatrix &g)
Do a random gauge transformation on the u fields.
void gaugeStartup(XMLReader &gauge_file_xml, XMLReader &gauge_xml, multi1d< LatticeColorMatrix > &u, Cfg_t &cfg)
Initialize the gauge fields.
void coulGauge(multi1d< LatticeColorMatrix > &u, int &n_gf, int j_decay, const Real &GFAccu, int GFMax, bool OrDo, const Real &OrPara)
Coulomb (and Landau) gauge fixing.
void reset()
Reset the default gauge field state.
void set(const multi1d< LatticeColorMatrix > &u, XMLBufferWriter &record_xml)
Set the default gauge field.
bool registerAll()
Register all the factories.
bool registerAll()
Register all the factories.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
QDP_error_exit("too many BiCG iterations", n_count, rsd_sq, cp, c, re_rvr, im_rvr, re_a, im_a, re_b, im_b)
static multi1d< LatticeColorMatrix > u
void initialize(int *argc, char ***argv)
Chroma initialisation routine.
void finalize(void)
Chroma finalization routine.
std::string getXMLInputFileName()
Get input file name.
XMLFileWriter & getXMLOutputInstance()
Get xml output instance.
void setup_levelthree(QDP::multi1d< int > nrow, int *argc, char ***argv)
int main(int argc, char **argv)
Gauge configuration structure.
struct Chroma::InlineStaggeredSpectrumParams::Param_t param