7 #ifndef __two_flavor_ratio_conv_rat_monomial_w_h__
8 #define __two_flavor_ratio_conv_rat_monomial_w_h__
34 template<
typename P,
typename Q,
typename Phi>
52 push(xml_out,
"TwoFlavorExactRatioConvRatWilsonTypeFermMonomial");
96 lin->deriv(F_tmp, X, Y,
MINUS);
100 lin->deriv(F_tmp, Y, X,
PLUS);
145 S_f.getFermBC().modifyF(
eta);
184 QDPIO::cout <<
"TwoFlavRatioConvRatWilson4DMonomial: resetting Predictor at end of field refresh" << std::endl;
188 push(xml_out,
"FieldRefreshment");
206 catch(std::bad_cast) {
207 QDPIO::cerr <<
"Failed to cast input Monomial to TwoFlavorExactRatioConvRatWilsonTypeFermMonomial " << std::endl;
321 template<
typename P,
typename Q,
typename Phi>
335 push(xml_out,
"TwoFlavorExactUnprecRatioConvRatWilsonTypeFermMonomial");
344 QDPIO::cout <<
"TwoFlavRatioConvRatWilson4DMonomial: resetting Predictor before energy calc solve" << std::endl;
356 (*M_prec)(phi_tmp, X,
PLUS);
363 write(xml_out,
"S", action);
397 template<
typename P,
typename Q,
typename Phi>
413 push(xml_out,
"S_odd_odd");
425 X[ lin->subset() ] =
zero;
428 QDPIO::cout <<
"TwoFlavRatioConvRatWilson4DMonomial: resetting Predictor before energy calc solve" << std::endl;
438 (*M_prec)(phi_tmp, X,
PLUS);
441 Double action = innerProductReal(
getPhi(), phi_tmp, lin->subset());
444 write(xml_out,
"S_oo", action);
458 push(xml_out,
"TwoFlavorExactEvenOddPrecRatioConvRatWilsonTypeFermMonomial");
462 write(xml_out,
"S", action);
494 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.
Even-odd preconditioned Wilson-like fermion actions including derivatives.
virtual EvenOddPrecLinearOperator< T, P, Q > * linOp(Handle< FermState< T, P, Q > > state) const =0
Override to produce an even-odd prec. linear operator for this action.
Fermionic monomials (binlinears in fermion fields)
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.
Exact 2 degen flavor even-odd preconditioned RatioConvRat type fermact monomial.
virtual const EvenOddPrecWilsonTypeFermAct< Phi, P, Q > & getNumerFermAct() const =0
Get at fermion action.
virtual Double S_even_even(const AbsFieldState< P, Q > &s)
Even even contribution (eg ln det Clover)
~TwoFlavorExactEvenOddPrecConstDetRatioConvRatWilsonTypeFermMonomial()
virtual destructor:
virtual const EvenOddPrecWilsonTypeFermAct< Phi, P, Q > & getDenomFermAct() const =0
Get at the preconditioned fermion actions.
Exact 2 degen flavor even-odd preconditioned RatioConvRat type fermact monomial.
Double S(const AbsFieldState< P, Q > &s)
Compute the total action.
virtual Double S_even_even(const AbsFieldState< P, Q > &s)=0
Even even contribution (eg ln det Clover)
virtual AbsChronologicalPredictor4D< Phi > & getMDSolutionPredictor()=0
Get the initial guess predictor.
virtual const EvenOddPrecWilsonTypeFermAct< Phi, P, Q > & getNumerFermAct() const =0
Get at fermion action.
virtual const EvenOddPrecWilsonTypeFermAct< Phi, P, Q > & getDenomFermAct() const =0
Get at the preconditioned fermion actions.
virtual Double S_odd_odd(const AbsFieldState< P, Q > &s)
Compute the odd odd contribution (eg.
~TwoFlavorExactEvenOddPrecRatioConvRatWilsonTypeFermMonomial()
virtual destructor:
virtual Phi & getPhi()=0
mutator for pseudofermion with Pf index i
virtual const Phi & getPhi() const =0
Accessor for pseudofermion with Pf index i (read only)
Exact 2 flavor RatioConvRat type monomial.
virtual const Phi & getPhi() const =0
Accessor for pseudofermion with Pf index i (read only)
virtual const RemezCoeff_t & getDenomSPFE() const =0
Return the partial fraction expansion for the action calc.
virtual const GroupXML_t & getNumerInvParams() const =0
Get parameters for the inverter.
virtual Double S(const AbsFieldState< P, Q > &s)=0
Compute the total action.
virtual AbsChronologicalPredictor4D< Phi > & getMDSolutionPredictor()=0
Get the initial guess predictor.
virtual const RemezCoeff_t & getDenomFPFE() const =0
Return the partial fraction expansion for the force calc.
virtual int getX(Phi &X, const AbsFieldState< P, Q > &s)
~TwoFlavorExactRatioConvRatWilsonTypeFermMonomial()
virtual destructor:
virtual const WilsonTypeFermAct< Phi, P, Q > & getDenomFermAct() const =0
Get at fermion action for preconditioner.
virtual const GroupXML_t & getDenomForceInvParams() const =0
Get inverter params.
virtual void dsdq(P &F, const AbsFieldState< P, Q > &s)
Compute dsdq for the system...
virtual void resetPredictors()
Reset predictors.
virtual const WilsonTypeFermAct< Phi, P, Q > & getFermAct() const
Get at fermion action.
virtual void setInternalFields(const Monomial< P, Q > &m)
Copy pseudofermions if any.
virtual void refreshInternalFields(const AbsFieldState< P, Q > &field_state)
Refresh pseudofermions.
virtual const RemezCoeff_t & getDenomSIPFE() const =0
Return the partial fraction expansion for the heat-bath.
virtual const WilsonTypeFermAct< Phi, P, Q > & getNumerFermAct() const =0
Get at fermion action.
virtual const GroupXML_t & getDenomActionInvParams() const =0
Get inverter params.
virtual Phi & getPhi()=0
mutator for pseudofermion with Pf index i
Exact 2 degen flavor unpreconditioned RatioConvRat type fermact monomial.
virtual Phi & getPhi()=0
mutator for pseudofermion with Pf index i
virtual const UnprecWilsonTypeFermAct< Phi, P, Q > & getDenomFermAct() const =0
Get at the preconditioned fermion actions.
virtual const Phi & getPhi() const =0
Accessor for pseudofermion with Pf index i (read only)
virtual AbsChronologicalPredictor4D< Phi > & getMDSolutionPredictor()=0
Get the initial guess predictor.
virtual const UnprecWilsonTypeFermAct< Phi, P, Q > & getNumerFermAct() const =0
Get at fermion action.
~TwoFlavorExactUnprecRatioConvRatWilsonTypeFermMonomial()
virtual destructor:
virtual Double S(const AbsFieldState< P, Q > &s)
Compute the total action.
Unpreconditioned Wilson-like fermion actions with derivatives.
Wilson-like fermion actions.
virtual DiffLinearOperator< T, P, Q > * lMdagM(Handle< FermState< T, P, Q > > state) const
Produce a linear operator M^dag.M for this action.
virtual MdagMSystemSolver< T > * invMdagM(Handle< FermState< T, P, Q > > state, const GroupXML_t &invParam) const
Return a linear operator solver for this action to solve MdagM*psi=chi.
Even-odd const determinant Wilson-like fermact.
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
const WilsonTypeFermAct< multi1d< LatticeFermion > > & S_f
multi1d< LatticeFermion > s(Ncb)
FloatingPoint< double > Double
Remez algorithm coefficients.
Hold group xml and type id.
Convenient structure to package Remez coeffs.
Holds return info from SystemSolver call.
Handle< LinearOperator< T > > MdagM
multi1d< LatticeColorMatrix > P
Wilson-like fermion actions.
static INTERNAL_PRECISION F