12 namespace LatColMatSTSMinNorm2RecursiveIntegratorEnv
17 multi1d<LatticeColorMatrix> >*
50 XMLReader paramtop(xml_in, path);
54 if( paramtop.count(
"./lambda") == 1 ) {
58 lambda = 0.1931833275037836;
60 QDPIO::cout <<
"Warning no lambda param found for minimum norm integrator" << std::endl;
61 QDPIO::cout <<
"Using default value lambda_c="<<
lambda << std::endl;
63 if( paramtop.count(
"./SubIntegrator") == 0 ) {
67 XMLBufferWriter subintegrator_writer;
70 push(subintegrator_writer,
"SubIntegrator");
71 write(subintegrator_writer,
"Name",
"LCM_EXP_T");
72 write(subintegrator_writer,
"n_steps", one_sub_step);
73 pop(subintegrator_writer);
82 XMLReader subint_reader(paramtop,
"./SubIntegrator");
83 std::ostringstream subintegrator_os;
84 subint_reader.print(subintegrator_os);
86 QDPIO::cout <<
"Subintegrator XML is: " << std::endl;
91 QDPIO::cout <<
"Error reading XML in LatColMatSTSMinNorm2RecursiveIntegratorParams " << e << std::endl;
107 write(xml,
"n_steps",
p.n_steps);
108 write(xml,
"monomial_ids",
p.monomial_ids);
109 write(xml,
"lambda",
p.lambda);
110 xml <<
p.subintegrator_xml;
118 multi1d<LatticeColorMatrix> >&
s,
119 const Real& traj_length)
const
131 Real dtau = traj_length / Real(
n_steps);
132 Real lambda_dt = dtau*
lambda;
133 Real dtauby2 = dtau / Real(2);
134 Real one_minus_2lambda_dt = (Real(1)-Real(2)*
lambda)*dtau;
135 Real two_lambda_dt = lambda_dt*Real(2);
138 expSdt(
s, lambda_dt);
142 subIntegrator(
s, dtauby2);
143 expSdt(
s, one_minus_2lambda_dt);
144 subIntegrator(
s, dtauby2);
145 expSdt(
s, two_lambda_dt);
149 subIntegrator(
s, dtauby2);
150 expSdt(
s, one_minus_2lambda_dt);
151 subIntegrator(
s, dtauby2);
152 expSdt(
s, lambda_dt);
Primary include file for CHROMA library code.
MD integrator that can be used as a component for other integrators.
MD integrator interface for PQP leapfrog.
MD integrator interface for PQP leapfrog.
AbsComponentIntegrator< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > & getSubIntegrator() const
Return the next level down integrator.
void operator()(AbsFieldState< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > &s, const Real &traj_length) const
Do an integration of lenght n*delta tau in n steps.
multi1d< IntegratorShared::MonomialPair > monomials
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.
static bool registered
Local registration flag.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
push(xml_out,"Condensates")
multi1d< LatticeFermion > s(Ncb)
std::string subintegrator_xml
multi1d< std::string > monomial_ids
LatColMatSTSMinNorm2RecursiveIntegratorParams()
Singleton instances of xml output.