48 XMLReader paramtop(xml, path);
57 XMLReader inputtop(xml, path);
66 read(inputtop,
"Cfg", input.
cfg);
70 XMLReader xml_action(inputtop,
"Action4D");
71 std::ostringstream os;
78 XMLReader xml_action(inputtop,
"Action5D");
79 std::ostringstream os;
86 QDPIO::cerr <<
"Error reading test data: " << e << std::endl;
94 int main(
int argc,
char **argv)
99 QDPIO::cout <<
"linkage=" <<
linkage_hack() << std::endl;
108 read(xml_in,
"/t_dwf4d", input);
114 QDPIO::cout <<
"t_dwf4d" << std::endl;
117 multi1d<LatticeColorMatrix>
u(
Nd);
118 XMLReader gauge_file_xml, gauge_xml;
126 push(xml_out,
"t_dwf4d");
131 write(xml_out,
"Input", xml_in);
134 write(xml_out,
"Config_info", gauge_xml);
140 MesPlq(xml_out,
"Observables",
u);
146 std::istringstream xml_s_5d(input.
action_5d);
147 std::istringstream xml_s_4d(input.
action_4d);
148 XMLReader fermacttop_5d(xml_s_5d);
149 XMLReader fermacttop_4d(xml_s_4d);
150 const std::string fermact_path_5d =
"/Action5D/FermionAction";
151 const std::string fermact_path_4d =
"/Action4D/FermionAction";
157 read(fermacttop_5d, fermact_path_5d +
"/FermAct", fermact_5d);
158 read(fermacttop_4d, fermact_path_4d +
"/FermAct", fermact_4d);
162 QDPIO::cerr <<
"Error reading fermact: " << e << std::endl;
165 catch (
const char* e)
167 QDPIO::cerr <<
"Error reading fermact: " << e << std::endl;
171 QDPIO::cout <<
"FermAct5D = " << fermact_5d << std::endl;
172 QDPIO::cout <<
"FermAct4D = " << fermact_4d << std::endl;
182 const std::string state_info_path_5d =
"/Action5D/StateInfo";
183 const std::string state_info_path_4d =
"/Action4D/StateInfo";
184 XMLReader state_info_xml_5d(fermacttop_5d,state_info_path_5d);
185 XMLReader state_info_xml_4d(fermacttop_4d,state_info_path_4d);
188 typedef LatticeFermion
T;
189 typedef multi1d<LatticeColorMatrix>
P;
190 typedef multi1d<LatticeColorMatrix>
Q;
193 bool success =
false;
195 QDPIO::cerr <<
"create dwf = " << fermact_5d << std::endl;
204 state_info_path_5d));
207 QDPIO::cerr <<
"create overlap" << std::endl;
216 state_info_path_4d));
228 LatticeFermion tmp1,
tmp2;
229 QDPIO::cout <<
"A5 plus" << std::endl;
232 QDPIO::cout <<
"A5 minus" << std::endl;
236 LatticeFermion
tmp3,tmp4;
237 QDPIO::cout <<
"A4 plus" << std::endl;
240 QDPIO::cout <<
"A4 minus" << std::endl;
244 push(xml_out,
"Innerprods");
245 write(xml_out,
"nn5_plus", nn5_plus);
246 write(xml_out,
"nn4_plus", nn4_plus);
247 write(xml_out,
"norm_diff_plus", Real(norm2(tmp1-
tmp3)));
248 write(xml_out,
"nn5_minus", nn5_minus);
249 write(xml_out,
"nn4_minus", nn4_minus);
250 write(xml_out,
"norm_diff_minus", Real(norm2(
tmp2-tmp4)));
256 QDPIO::cerr <<
"Error in t_dwf4d: " << e << std::endl;
259 catch (
const char* e)
261 QDPIO::cerr <<
"Error in t_dwf4d: " << e << std::endl;
Primary include file for CHROMA in application codes.
Class for counted reference semantics.
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 proginfo(XMLWriter &xml)
Print out basic information about this program.
GroupXML_t readXMLGroup(XMLReader &xml_in, const std::string &path, const std::string &type_name)
Read group and return as a std::string.
multi1d< LatticeColorMatrix > P
BinaryReturn< C1, C2, FnInnerProduct >::Type_t innerProduct(const QDPSubType< T1, C1 > &s1, const QDPType< T2, C2 > &s2)
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
static multi1d< LatticeColorMatrix > u
LinOpSysSolverMGProtoClover::Q Q
push(xml_out,"Condensates")
LinOpSysSolverMGProtoClover::T T
void initialize(int *argc, char ***argv)
Chroma initialisation routine.
void finalize(void)
Chroma finalization routine.
multi1d< LatticeFermion > chi(Ncb)
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.
Hold group xml and type id.
Parameters for running program.
SysSolverCGParams invParam
bool linkage_hack()
To insure linking of code, place the registered code flags here.
int main(int argc, char **argv)