31 int main(
int argc,
char *argv[])
37 const int nrow_arr[] = {2, 2, 2, 2};
38 multi1d<int> nrow(
Nd);
40 Layout::setLattSize(nrow);
44 multi1d<LatticeColorMatrix>
u(
Nd);
56 push(xml_out,
"t_gauge_ferm_monomials");
57 push(xml_log,
"t_gauge_ferm_monomials");
60 multi1d<int> boundary(
Nd);
64 XMLReader paramtop(param_in,
"/HamiltonianTest");
71 read(paramtop,
"./Hamiltonian", H_handle);
75 QDPIO::cerr <<
"Error Reading Hamiltonian " << e << std::endl;
80 multi1d<LatticeColorMatrix>
p(
Nd);
89 H_handle->refreshInternalFields(gauge_state);
92 multi1d<LatticeColorMatrix> dsdq(
Nd);
93 H_handle->dsdq(dsdq, gauge_state);
97 H_handle->mesE(gauge_state, KE, PE);
98 QDPIO::cout <<
"KE = " << KE <<
" PE = " << PE << 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 gaugeStartup(XMLReader &gauge_file_xml, XMLReader &gauge_xml, multi1d< LatticeColorMatrix > &u, Cfg_t &cfg)
Initialize the gauge fields.
bool registerAll()
Register all the factories.
bool registerAll()
Register all the factories.
bool registerAll()
Register all the factories.
bool registerAll()
Register all the factories.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
XMLFileWriter & getXMLLogInstance()
Get xml log instance.
static multi1d< LatticeColorMatrix > u
push(xml_out,"Condensates")
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.
FloatingPoint< double > Double
Gauge configuration structure.
bool linkage_hack()
To insure linking of code, place the registered code flags here.
int main(int argc, char *argv[])