10 namespace LCMMDIntegratorSteps
14 void leapP(
const multi1d< IntegratorShared::MonomialPair >& monomials,
19 multi1d<LatticeColorMatrix> >&
s)
27 push(xml_out,
"leapP");
29 multi1d<Real> real_step_size(
Nd);
36 write(xml_out,
"dt_actual_per_dir", real_step_size);
39 multi1d<LatticeColorMatrix> dsdQ(
Nd);
40 push(xml_out,
"AbsHamiltonianForce");
41 write(xml_out,
"num_terms", monomials.size());
42 push(xml_out,
"ForcesByMonomial");
44 if( monomials.size() > 0 ) {
45 push(xml_out,
"elem");
46 swatch.reset(); swatch.start();
47 monomials[0].mon->dsdq(dsdQ,
s);
49 QDPIO::cout <<
"FORCE TIME: " << monomials[0].id <<
" : " << swatch.getTimeInSeconds() << std::endl;
51 for(
int i=1;
i < monomials.size();
i++) {
52 push(xml_out,
"elem");
53 multi1d<LatticeColorMatrix> cur_F(
Nd);
54 swatch.reset(); swatch.start();
55 monomials[
i].mon->dsdq(cur_F,
s);
59 QDPIO::cout <<
"FORCE TIME: " << monomials[
i].id <<
" : " << swatch.getTimeInSeconds() <<
"\n";
71 (
s.getP())[
mu] += real_step_size[
mu] * dsdQ[
mu];
84 multi1d<LatticeColorMatrix> >&
s)
88 LatticeColorMatrix
tmp_1;
89 LatticeColorMatrix
tmp_2;
93 push(xml_out,
"leapQ");
95 multi1d<Real> real_step_size(
Nd);
102 write(xml_out,
"dt_actual_per_dir", real_step_size);
105 const multi1d<LatticeColorMatrix>& p_mom =
s.getP();
108 multi1d<LatticeColorMatrix>&
u =
s.getQ();
Exponentiate a SU(n) lie algebra element by some method,.
Helper function for calculating forces.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams ¶m)
Writer parameters.
void taproj(LatticeColorMatrix &a)
Take the traceless antihermitian projection of a color matrix.
void expmat(LatticeColorMatrix &a, enum ExpMat_t opt)
Exponentiate a SU(n) lie algebra element by some method.
void leapQ(const Real &dt, AbsFieldState< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > &s)
Leap with Q (with all monomials)
void leapP(const multi1d< IntegratorShared::MonomialPair > &monomials, const Real &dt, AbsFieldState< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > &s)
LeapP for just a selected list of monomials.
Asqtad Staggered-Dirac operator.
static multi1d< LatticeColorMatrix > u
push(xml_out,"Condensates")
void reunit(LatticeColorMatrixF3 &xa)
multi1d< LatticeFermion > s(Ncb)
Reunitarize in place a color matrix to SU(N)
Take the traceless antihermitian projection of a color matrix.