10 int main(
int argc,
char *argv[])
16 multi1d<int> nrow(
Nd);
17 QDPIO::cout <<
"Enter lattice size" << std::endl;
21 Layout::setLattSize(nrow);
25 QDPIO::cout <<
"Enter Gauge field type\n"
26 <<
" (1) Free field\n"
27 <<
" (2) Random-transformed free field\n"
28 <<
" (3) Hot start (call hotst)\n"
29 <<
" (4) SZIN configuration\n"
30 <<
" (5) NERSC configuration" << std::endl;
34 QDPIO::cout <<
"Enter the direction of decay" << std::endl;
38 QDPIO::cout <<
"Enter the gauge fixing accuracy" << std::endl;
42 QDPIO::cout <<
"Enter the maximum number of gauge fixing sweeps" << std::endl;
46 QDPIO::cout <<
"Want over-relaxation? (yes=YES)" << std::endl;
52 QDPIO::cout <<
"Enter the over-relaxtion parameter" << std::endl;
56 QDPIO::cout <<
"Now, I am running..." << std::endl;
58 XMLFileWriter xml_out(
"t_gfix.xml");
59 push(xml_out,
"t_gfix");
61 push(xml_out,
"Lattice_dimensions");
62 write(xml_out,
"Nc", Nc);
64 write(xml_out,
"nrow", nrow);
67 multi1d<LatticeColorMatrix>
u(
Nd);
73 push(xml_out,
"Free_Field");
74 write(xml_out,
"type", type);
76 QDPIO::cout <<
"Fill u with free field" << std::endl;
81 push(xml_out,
"Free_Field_with_random_gauge_transformation");
82 write(xml_out,
"type", type);
84 QDPIO::cout <<
"Fill u with random gauge transformed free field" << std::endl;
90 push(xml_out,
"Semi-Haar_measure");
91 write(xml_out,
"type", type);
93 QDPIO::cout <<
"Fill u with semi-Haar" << std::endl;
100 QDPIO::cout <<
"Enter SZIN input file name" << std::endl;
101 QDPIO::cin >> cfg_file_in;
103 push(xml_out,
"Configuration");
104 write(xml_out,
"type", type);
106 QDPIO::cout <<
"Read SZIN config from " << cfg_file_in << std::endl;
116 QDPIO::cout <<
"Enter NERSC input file name" << std::endl;
117 QDPIO::cin >> cfg_file_in;
119 push(xml_out,
"Configuration");
120 write(xml_out,
"type", type);
122 QDPIO::cout <<
"Read NERSC config from " << cfg_file_in << std::endl;
125 readArchiv(gauge_xml,
u, cfg_file_in);
134 QDPIO::cout <<
"Enter NERSC output file name" << std::endl;
135 QDPIO::cin >> cfg_file_out;
138 push(xml_out,
"Gfix_parameters");
140 write(xml_out,
"GFAccu", GFAccu);
141 write(xml_out,
"GFMax", GFMax);
142 write(xml_out,
"OrlxDo", OrlxDo);
143 write(xml_out,
"OrPara", OrPara);
148 QDPIO::cout <<
" Initial plaqettes and link: " <<
w_plaq
151 push(xml_out,
"Initial_gauge_invariant_observables");
163 QDPIO::cout <<
" Final plaqettes and link: " <<
w_plaq
166 push(xml_out,
"Final_gauge_invariant_observables");
173 push(xml_out,
"Relaxation_iterations_in_GFIX");
174 write(xml_out,
"nrl_gf", nrl_gf);
178 QDPIO::cout <<
"Trying to write NERSC Archive to file " << cfg_file_out << std::endl;
179 writeArchiv(
u, cfg_file_out);
Primary include file for CHROMA in application codes.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams ¶m)
Writer parameters.
void rgauge(multi1d< LatticeColorMatrix > &u, LatticeColorMatrix &g)
Do a random gauge transformation on the u fields.
void HotSt(multi1d< LatticeColorMatrix > &u)
Set a gauge field from a sample of (almost) Haar measure.
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 readSzin(SzinGauge_t &header, multi1d< LatticeColorMatrix > &u, const std::string &cfg_file)
Read a SZIN configuration file.
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
push(xml_out,"Condensates")
void initialize(int *argc, char ***argv)
Chroma initialisation routine.
void finalize(void)
Chroma finalization routine.
void MesPlq(const multi1d< LatticeColorMatrixF3 > &u, multi2d< Double > &plane_plaq, Double &link)
FloatingPoint< double > Double
int main(int argc, char *argv[])