30 int main(
int argc,
char *argv[])
35 XMLReader xml_in(
"input.xml");
45 multi1d<int> nrow(
Nd);
48 read(xml_in,
"/test/nrow", nrow);
49 read(xml_in,
"/test/infile", filename);
53 Layout::setLattSize(nrow);
56 QDPIO::cout <<
"Lattice: Lx = " << nrow[0] <<
" Ly = " << nrow[1] <<
" Lz = " << nrow[2]
57 <<
" Lt =" << nrow[3] << std::endl;
59 QDPIO::cout <<
"Reading Propagator from file " << filename << std::endl;
63 LatticePropagator qprop=
zero;
66 LatticeComplex corr_fn = trace(adj(qprop)*qprop);
72 multi1d<DComplex> hsum(nrow[3]);
74 hsum = sumMulti(corr_fn, timeslice);
76 XMLFileWriter xml_out(
"output.xml");
78 push(xml_out,
"follanaIO");
79 write(xml_out,
"hsum", hsum);
82 multi1d<LatticeReal> meson_phases(
Nd);
Primary include file for CHROMA in application codes.
Function object used for constructing the time-slice set.
int operator()(const multi1d< int > &coordinate) const
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.
Asqtad Staggered-Dirac operator.
void readQpropFollana(char file[], LatticePropagator &quark_prop, bool swap)
push(xml_out,"Condensates")
void initialize(int *argc, char ***argv)
Chroma initialisation routine.
void finalize(void)
Chroma finalization routine.
void MesPhas(multi1d< LatticeReal > &meson_phases, int j_decay)
int main(int argc, char *argv[])