CHROMA
lcm_exp_tdt.cc
Go to the documentation of this file.
1 #include "chromabase.h"
5 #include "io/xmllog_io.h"
6 #include <string>
7 
8 
9 namespace Chroma
10 {
11 
12  namespace LatColMatExpTdtIntegratorEnv
13  {
14  namespace
15  {
17  multi1d<LatticeColorMatrix> >*
18  createMDIntegrator(
19  XMLReader& xml,
20  const std::string& path)
21  {
22  // Read the integrator params
24 
25  return new LatColMatExpTdtIntegrator(p);
26  }
27 
28  //! Local registration flag
29  bool registered = false;
30  }
31 
32  const std::string name = "LCM_EXP_T";
33 
34  //! Register all the factories
35  bool registerAll()
36  {
37  bool success = true;
38  if (! registered)
39  {
40  success &= TheMDComponentIntegratorFactory::Instance().registerObject(name, createMDIntegrator);
41  registered = true;
42  }
43  return success;
44  }
45  }
46 
47 
49  {
50  XMLReader paramtop(xml_in, path);
51  try {
52  read(paramtop, "./n_steps", n_steps);
53  }
54  catch ( const std::string& e ) {
55  QDPIO::cout << "Error reading XML in LatColMatExpTdtIntegratorParams " << e << std::endl;
56  QDP_abort(1);
57  }
58  }
59 
60  void read(XMLReader& xml,
61  const std::string& path,
64  p = tmp;
65  }
66 
67  void write(XMLWriter& xml,
68  const std::string& path,
70  push(xml, path);
71  write(xml, "n_steps", p.n_steps);
72  pop(xml);
73  }
74 
76  AbsFieldState<multi1d<LatticeColorMatrix>,
77  multi1d<LatticeColorMatrix> >& s,
78  const Real& traj_length) const
79  {
80 
81  START_CODE();
82  Real dtau = traj_length / n_steps;
83  for(int i=0; i < n_steps; i++) {
85  }
86 
87  END_CODE();
88 
89 
90  }
91 
92 
93 }
Primary include file for CHROMA library code.
MD integrator that can be used as a component for other integrators.
Abstract field state.
Definition: field_state.h:27
MD integrator interface for PQP leapfrog.
Definition: lcm_exp_tdt.h:55
void operator()(AbsFieldState< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > &s, const Real &traj_length) const
Do an integration of length n*delta tau in n steps.
Definition: lcm_exp_tdt.cc:75
static T & Instance()
Definition: singleton.h:432
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams &param)
Read parameters.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams &param)
Writer parameters.
void leapQ(const Real &dt, AbsFieldState< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > &s)
Leap with Q (with all monomials)
Intgrator for exp(T dt)
Integrator factories.
static bool registered
Local registration flag.
bool registerAll()
Register all the factories.
Definition: lcm_exp_tdt.cc:35
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
LatticeFermion tmp
Definition: mespbg5p_w.cc:36
push(xml_out,"Condensates")
int i
Definition: pbg5p_w.cc:55
pop(xml_out)
START_CODE()
multi1d< LatticeFermion > s(Ncb)
::std::string string
Definition: gtest.h:1979
Singleton instances of xml output.