50 multi1d<int> boundary;
74 XMLReader inputtop(xml, path);
85 read(inputtop,
"IO_version/version", version);
89 QDPIO::cerr <<
"Error reading data: " << e << std::endl;
100 XMLReader paramtop(inputtop,
"param");
112 QDPIO::cerr <<
"Input parameter version " << version <<
" unsupported." << std::endl;
118 QDPIO::cerr <<
"Error reading data: " << e << std::endl;
122 QDPIO::cout <<
"Propagator for Staggered fermions" << std::endl;
126 XMLReader paramtop(inputtop,
"param");
144 QDPIO::cerr <<
"Error reading data: " << e << std::endl;
152 read(inputtop,
"Cfg", input.
cfg);
156 QDPIO::cerr <<
"Error reading data: " << e << std::endl;
180 int main(
int argc,
char **argv)
194 xml_in.open(in_name);
198 QDPIO::cerr <<
"Error reading input file " << in_name << std::endl;
199 QDPIO::cerr <<
"The input file name can be passed via the -i flag " << std::endl;
200 QDPIO::cerr <<
"The default name is ./DATA" << std::endl;
208 read(xml_in,
"/propagator", input);
212 QDPIO::cerr <<
"Error parsing the input file " << in_name << std::endl;
220 multi1d<LatticeColorMatrix>
u(
Nd);
222 XMLReader gauge_file_xml, gauge_xml;
227 push(xml_out,
"hadron_corr");
230 write(xml_out,
"Input", xml_in);
233 write(xml_out,
"Config_info", gauge_xml);
237 push(xml_out,
"Output_version");
238 write(xml_out,
"out_version", 1);
247 MesPlq(xml_out,
"Observables",
u);
255 MesPlq(xml_out,
"Is_this_gauge_invariant",
u);
259 typedef LatticeStaggeredFermion
T;
260 typedef multi1d<LatticeColorMatrix>
P;
261 typedef multi1d<LatticeColorMatrix>
Q;
267 XMLReader fermact_reader ;
275 fermact_reader.open(is);
279 QDPIO::cerr <<
"Error reading action name " << std::endl;
301 LatticeStaggeredPropagator quark_propagator;
302 XMLBufferWriter xml_buf;
307 LatticeStaggeredFermion q_source,
psi;
309 push(xml_out,
"point_source");
310 push(xml_out,
"Inverter_properties");
317 XMLBufferWriter xml_buf;
319 XMLReader xml_in(xml_buf);
320 inv_param =
readXMLGroup(xml_in,
"/InvertParam",
"invType");
327 QDPIO::cout <<
"Source time slice = " <<
t_source << std::endl;
330 multi1d<int>
coord(4) ;
336 for(
int color_source = 0; color_source < Nc; ++color_source) {
337 QDPIO::cout <<
"Inversion for Color = " << color_source << std::endl;
350 push(xml_out,
"Inverter_performance");
351 write(xml_out,
"color", color_source);
364 push(xml_out,
"Hadrons_from_time_source");
Primary include file for CHROMA in application codes.
Class for counted reference semantics.
Staggered-like fermion actions.
void dump(int t_source, XMLWriter &xml_out)
void compute(LatticeStaggeredPropagator &quark_prop_A, LatticeStaggeredPropagator &quark_prop_B, int j_decay)
void FermToProp(const LatticeFermionF &a, LatticePropagatorF &b, int color_index, int spin_index)
Insert a LatticeFermion into a LatticePropagator.
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.
CfgType
Configuration type.
GroupXML_t readXMLGroup(XMLReader &xml_in, const std::string &path, const std::string &type_name)
Read group and return as a std::string.
void srcfil(LatticeFermion &a, const multi1d< int > &coord, int color_index, int spin_index)
Fill a specific color and spin index with 1.0.
std::map< std::string, SinkPropContainer_t > prop
bool registerAll()
Register all the factories.
bool registerAll()
Register all the factories.
multi1d< LatticeColorMatrix > P
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
static multi1d< LatticeColorMatrix > u
LinOpSysSolverMGProtoClover::Q Q
const WilsonTypeFermAct< multi1d< LatticeFermion > > Handle< const ConnectState > const multi1d< Real > & Mass
push(xml_out,"Condensates")
LinOpSysSolverMGProtoClover::T T
void initialize(int *argc, char ***argv)
Chroma initialisation routine.
void finalize(void)
Chroma finalization routine.
std::string getXMLInputFileName()
Get input file name.
void MesPlq(const multi1d< LatticeColorMatrixF3 > &u, multi2d< Double > &plane_plaq, Double &link)
const WilsonTypeFermAct< multi1d< LatticeFermion > > Handle< const ConnectState > state
XMLFileWriter & getXMLOutputInstance()
Get xml output instance.
const WilsonTypeFermAct< multi1d< LatticeFermion > > & S_f
Gauge configuration structure.
Hold group xml and type id.
Holds return info from SystemSolver call.
Parameters for running program.
SysSolverCGParams invParam
int main(int argc, char **argv)
Read an XML group as a std::string.