3 #include "io/pg_hmc_io.h"
4 #include "util/gauge/gaugebc_utils.h"
5 #include "util/gauge/gaugeact_utils.h"
11 int main(
int argc,
char *argv[])
18 struct PureGaugeHMCParams input;
20 read(xml_in,
"/PureGaugeHMC/params", input);
25 push(xml_out,
"PureGaugeHMC");
26 push(xml_log,
"PureGaugeHMC");
28 write(xml_out,
"params", input);
29 write(xml_log,
"params", input);
32 Layout::setLattSize(input.MC_iters.nrow);
45 *(input.gauge_act_MC_handle) ) );
49 *(input.gauge_act_MD_handle) ) );
53 ExactPureGaugeHamiltonian H_MC(*(S_g_MC_handle));
54 ExactPureGaugeHamiltonian H_MD(*(S_g_MD_handle));
60 Handle< AbsLatColMatHybInt<
67 switch( input.MD_params_handle->getType() ) {
70 leaps_handle =
new PureGaugeSympUpdates(H_MD);
72 const LeapfrogParams& lf_par =
73 dynamic_cast<LeapfrogParams&
>(*(input.MD_params_handle));
75 integrator_handle =
new PureGaugePQPLeapFrog(*leaps_handle,
77 lf_par.getTrajLength());
82 QDPIO::cerr <<
"Integrator not yet implemented " << std::endl;
86 PureGaugeHMCTraj
HMC(H_MC, *integrator_handle);
89 multi1d<LatticeColorMatrix>
u(
Nd);
90 multi1d<LatticeColorMatrix>
p(
Nd);
92 if( input.MC_startup.restartP ==
false ) {
97 gaugeStartup(file_xml, config_xml,
u, input.MC_startup.start_cfg);
101 QDPIO::cerr <<
"Restart from saved state not yet implemented" << std::endl;
Primary include file for CHROMA in application codes.
New Abstract Hamiltonian.
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 gaugeStartup(XMLReader &gauge_file_xml, XMLReader &gauge_xml, multi1d< LatticeColorMatrix > &u, Cfg_t &cfg)
Initialize the gauge fields.
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.
int main(int argc, char *argv[])