7 #ifndef __two_flavor_polyprec_monomial_w_h__
8 #define __two_flavor_polyprec_monomial_w_h__
30 template<
typename P,
typename Q,
typename Phi>
48 push(xml_out,
"TwoFlavorExactPolyPrecWilsonTypeFermMonomial");
77 lin->deriv(
F, X, X,
PLUS);
79 for(
int mu=0;
mu <
F.size(); ++
mu)
126 QDPIO::cout <<
"TwoFlavPolyWilson4DMonomial: resetting Predictor after field refresh" << std::endl;
142 catch(std::bad_cast) {
143 QDPIO::cerr <<
"Failed to cast input Monomial to TwoFlavorExactPolyPrecWilsonTypeFermMonomial " << std::endl;
158 virtual const Phi&
getPhi(
void)
const = 0;
214 template<
typename P,
typename Q,
typename Phi>
228 push(xml_out,
"TwoFlavorExactPolyPrecUnprecWilsonTypeFermMonomial");
234 QDPIO::cout <<
"TwoFlavPolyWilson4DMonomial: resetting Predictor before energy calc solve" << std::endl;
242 write(xml_out,
"S", action);
253 virtual const Phi&
getPhi(
void)
const = 0;
276 template<
typename P,
typename Q,
typename Phi>
292 push(xml_out,
"S_odd_odd");
304 X[ lin->subset() ] =
zero;
307 QDPIO::cout <<
"TwoFlavPolyWilson4DMonomial: resetting Predictor before energy calc solve" << std::endl;
310 Double action = innerProductReal(
getPhi(), X, lin->subset());
313 write(xml_out,
"S_oo", action);
327 push(xml_out,
"TwoFlavorExactPolyPrecEvenOddPrecWilsonTypeFermMonomial");
331 write(xml_out,
"S", action);
347 virtual const Phi&
getPhi(
void)
const = 0;
363 template<
typename P,
typename Q,
typename Phi>
Monomials - gauge action or fermion binlinear contributions for HMC.
Chronological predictor for HMC.
Abstract interface for a Chronological Solution predictor.
virtual const Q & getQ(void) const =0
virtual DiffLinearOperator< T, Q, P > * linOp(Handle< FermState< T, P, Q > > state) const =0
Produce a linear operator for this action.
Fermionic monomials (binlinears in fermion fields)
virtual const FermBC< T, P, Q > & getFermBC() const
Return the fermion BC object for this action.
virtual FermState< T, P, Q > * createState(const Q &q) const
Given links (coordinates Q) create the state needed for the linear operators.
Class for counted reference semantics.
An abstract monomial class, for inexact algorithms.
Polynomial Wilson-like fermion actions with derivatives.
virtual PolyLinearOperator< T, P, Q > * polyLinOp(Handle< FermState< T, P, Q > > state) const =0
Produce a polynomial linear operator for this action.
virtual DiffLinearOperator< T, P, Q > * polyPrecLinOp(Handle< FermState< T, P, Q > > state) const =0
Produce a polynomial preconditioned linear operator for this action.
virtual PolyPrecSystemSolver< T > * invPolyPrec(Handle< FermState< T, P, Q > > state, const GroupXML_t &invParam) const =0
Return a linear operator solver for this action to solve M*psi=chi.
Exact 2 degen flavor even-odd preconditioned fermact monomial.
virtual Double S_even_even(const AbsFieldState< P, Q > &s)
Even even contribution (eg For this kind of Monomial it is 0)
virtual ~TwoFlavorExactEvenOddPrecConstDetPolyPrecWilsonTypeFermMonomial()
virtual destructor:
virtual const PolyWilsonTypeFermAct< Phi, P, Q > & getFermAct() const =0
Get at fermion action.
Exact 2 degen flavor even-odd preconditioned fermact monomial.
virtual Phi & getPhi(void)=0
mutator for pseudofermion with Pf index i
Double S(const AbsFieldState< P, Q > &s)
Compute the total action.
virtual AbsChronologicalPredictor4D< Phi > & getMDSolutionPredictor(void)=0
Get the initial guess predictor.
virtual const Phi & getPhi(void) const =0
Accessor for pseudofermion with Pf index i (read only)
virtual Double S_even_even(const AbsFieldState< P, Q > &s)=0
Even even contribution (eg ln det Clover)
virtual const GroupXML_t & getInvParams(void) const =0
Get inverter params.
virtual const PolyWilsonTypeFermAct< Phi, P, Q > & getFermAct() const =0
Get at fermion action.
virtual Double S_odd_odd(const AbsFieldState< P, Q > &s)
Compute the odd odd contribution (eg.
virtual ~TwoFlavorExactEvenOddPrecPolyPrecWilsonTypeFermMonomial()
virtual destructor:
Exact 2 degen flavor fermact monomial.
virtual const Phi & getPhi(void) const =0
Accessor for pseudofermion with Pf index i (read only)
virtual AbsChronologicalPredictor4D< Phi > & getMDSolutionPredictor(void)=0
Get the initial guess predictor.
virtual void dsdq(P &F, const AbsFieldState< P, Q > &s)
Compute dsdq for the system...
virtual Phi & getPhi(void)=0
mutator for pseudofermion with Pf index i
virtual Double S(const AbsFieldState< P, Q > &s)=0
Compute the total action.
virtual const GroupXML_t & getInvParams(void) const =0
Get inverter params.
virtual void refreshInternalFields(const AbsFieldState< P, Q > &field_state)
Refresh pseudofermions.
virtual void resetPredictors(void)
Reset predictors.
virtual const PolyWilsonTypeFermAct< Phi, P, Q > & getFermAct(void) const =0
Get at fermion action.
virtual void setInternalFields(const Monomial< P, Q > &m)
Copy pseudofermions if any.
virtual int getX(Phi &X, const AbsFieldState< P, Q > &s)
Get (Q*P(Q^2)*Q)^{-1} phi.
virtual ~TwoFlavorExactPolyPrecWilsonTypeFermMonomial()
virtual destructor:
Exact 2 degen flavor unpreconditioned fermact monomial.
virtual const PolyWilsonTypeFermAct< Phi, P, Q > & getFermAct(void) const =0
Get at fermion action.
virtual Double S(const AbsFieldState< P, Q > &s)
Compute the total action.
virtual const Phi & getPhi(void) const =0
Accessor for pseudofermion with Pf index i (read only)
virtual ~TwoFlavorExactUnprecPolyPrecWilsonTypeFermMonomial()
virtual destructor:
virtual Phi & getPhi(void)=0
mutator for pseudofermion with Pf index i
virtual AbsChronologicalPredictor4D< Phi > & getMDSolutionPredictor(void)=0
Get at the chronological predcitor.
virtual const GroupXML_t & getInvParams(void) const =0
Get inverter params.
virtual LinearOperator< T > * hermitianLinOp(Handle< FermState< T, P, Q > > state) const =0
Produce a hermitian version of the linear operator.
Helper function for calculating forces.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams ¶m)
Writer parameters.
void reset()
Reset the default gauge field state.
void monitorForces(XMLWriter &xml_out, const std::string &path, const multi1d< LatticeColorMatrix > &F)
Calculate and write out forces.
Asqtad Staggered-Dirac operator.
push(xml_out,"Condensates")
const WilsonTypeFermAct< multi1d< LatticeFermion > > Handle< const ConnectState > state
multi1d< LatticeFermion > s(Ncb)
FloatingPoint< double > Double
Hold group xml and type id.
Holds return info from SystemSolver call.
multi1d< LatticeColorMatrix > P
Class structure for polynomial fermion actions.
static INTERNAL_PRECISION F