57 out, in, *
gauge, 0.0, 2 *
mu *
kappa, -2 *
kappa *
epsilon, in,
parity,
dagger,
commDim,
profile);
72 ApplyNdegTwistedMass(out, in, *
gauge, k, 2 *
mu *
kappa, -2 *
kappa *
epsilon, x,
parity,
dagger,
commDim,
profile);
113 errorQuda(
"Preconditioned solution requires a preconditioned solve_type");
129 errorQuda(
"Wilson-type operators only support aggregation coarsening");
133 CoarseOp(Y, X, T, *
gauge, c,
kappa,
mass, a,
mu_factor,
QUDA_TWISTED_MASS_DIRAC,
QUDA_MATPC_INVALID);
147 if (&
dirac !=
this) {
173 double b = 1.0 / (1.0 + a * a);
177 ApplyTwistedMassPreconditioned(out, in, *
gauge, b, a,
false, in,
parity,
dagger, asymmetric,
commDim,
profile);
182 double c = 1.0 / (1.0 + a * a - b * b);
205 double b = k / (1.0 + a * a);
209 ApplyTwistedMassPreconditioned(out, in, *
gauge, b, a,
true, x,
parity,
dagger, asymmetric,
commDim,
profile);
214 double c = 1.0 / (1.0 + a * a - b * b);
269 src = odd_bit ? &(x.
Even()) : &(x.
Odd());
270 sol = odd_bit ? &(x.
Odd()) : &(x.
Even());
378 errorQuda(
"Wilson-type operators only support aggregation coarsening");
382 CoarseOp(Y, X, T, *
gauge, c,
kappa,
mass, a, -
mu_factor,
QUDA_TWISTED_MASSPC_DIRAC,
matpcType);
const ColorSpinorField & Odd() const
QudaTwistFlavorType TwistFlavor() const
const ColorSpinorField & Even() const
bool newTmp(ColorSpinorField **, const ColorSpinorField &) const
void deleteTmp(ColorSpinorField **, const bool &reset) const
virtual void checkParitySpinor(const ColorSpinorField &, const ColorSpinorField &) const
Check parity spinors are usable (check geometry ?)
void checkSpinorAlias(const ColorSpinorField &, const ColorSpinorField &) const
check spinors do not alias
virtual void checkFullSpinor(const ColorSpinorField &, const ColorSpinorField &) const
check full spinors are compatible (check geometry ?)
int commDim[QUDA_MAX_DIM]
void Mdag(ColorSpinorField &out, const ColorSpinorField &in) const
Apply Mdag (daggered operator of M.
virtual void prepare(ColorSpinorField *&src, ColorSpinorField *&sol, ColorSpinorField &x, ColorSpinorField &b, const QudaSolutionType) const
virtual void DslashXpay(ColorSpinorField &out, const ColorSpinorField &in, QudaParity parity, const ColorSpinorField &x, const double &k) const
Xpay version of Dslash.
virtual void reconstruct(ColorSpinorField &x, const ColorSpinorField &b, const QudaSolutionType) const
void twistedApply(ColorSpinorField &out, const ColorSpinorField &in, const QudaTwistGamma5Type twistType) const
void createCoarseOp(GaugeField &Y, GaugeField &X, const Transfer &T, double kappa, double mass, double mu, double mu_factor=0.) const
Create the coarse twisted-mass operator.
virtual ~DiracTwistedMass()
DiracTwistedMass(const DiracTwistedMass &dirac)
virtual void MdagM(ColorSpinorField &out, const ColorSpinorField &in) const
Apply MdagM operator which may be optimized.
virtual void M(ColorSpinorField &out, const ColorSpinorField &in) const
Apply M for the dirac op. E.g. the Schur Complement operator.
virtual void Dslash(ColorSpinorField &out, const ColorSpinorField &in, QudaParity parity) const
apply 'dslash' operator for the DiracOp. This may be e.g. AD
DiracTwistedMass & operator=(const DiracTwistedMass &dirac)
void Twist(ColorSpinorField &out, const ColorSpinorField &in) const
virtual ~DiracTwistedMassPC()
void reconstruct(ColorSpinorField &x, const ColorSpinorField &b, const QudaSolutionType) const
void createCoarseOp(GaugeField &Y, GaugeField &X, const Transfer &T, double kappa, double mass, double mu, double mu_factor=0.) const
Create the coarse even-odd preconditioned twisted-mass operator.
void M(ColorSpinorField &out, const ColorSpinorField &in) const
Apply M for the dirac op. E.g. the Schur Complement operator.
DiracTwistedMassPC(const DiracTwistedMassPC &dirac)
void prepare(ColorSpinorField *&src, ColorSpinorField *&sol, ColorSpinorField &x, ColorSpinorField &b, const QudaSolutionType) const
void MdagM(ColorSpinorField &out, const ColorSpinorField &in) const
Apply MdagM operator which may be optimized.
void TwistInv(ColorSpinorField &out, const ColorSpinorField &in) const
DiracTwistedMassPC & operator=(const DiracTwistedMassPC &dirac)
virtual void Dslash(ColorSpinorField &out, const ColorSpinorField &in, const QudaParity parity) const
apply 'dslash' operator for the DiracOp. This may be e.g. AD
virtual void DslashXpay(ColorSpinorField &out, const ColorSpinorField &in, const QudaParity parity, const ColorSpinorField &x, const double &k) const
Xpay version of Dslash.
DiracWilson & operator=(const DiracWilson &dirac)
virtual void DslashXpay(ColorSpinorField &out, const ColorSpinorField &in, const QudaParity parity, const ColorSpinorField &x, const double &k) const
Xpay version of Dslash.
QudaTransferType getTransferType() const
quda::mgarray< double > mu_factor
@ QUDA_TWISTED_MASSPC_DIRAC
@ QUDA_TWISTED_MASS_DIRAC
enum QudaTwistGamma5Type_s QudaTwistGamma5Type
@ QUDA_TRANSFER_AGGREGATE
enum QudaSolutionType_s QudaSolutionType
@ QUDA_MATPC_ODD_ODD_ASYMMETRIC
@ QUDA_MATPC_EVEN_EVEN_ASYMMETRIC
@ QUDA_TWIST_GAMMA5_INVERSE
@ QUDA_TWIST_GAMMA5_DIRECT
@ QUDA_MATPCDAG_MATPC_SOLUTION
enum QudaParity_s QudaParity
void ApplyNdegTwistedMass(ColorSpinorField &out, const ColorSpinorField &in, const GaugeField &U, double a, double b, double c, const ColorSpinorField &x, int parity, bool dagger, const int *comm_override, TimeProfile &profile)
Driver for applying the non-degenerate twisted-mass stencil.
void ApplyTwistGamma(ColorSpinorField &out, const ColorSpinorField &in, int d, double kappa, double mu, double epsilon, int dagger, QudaTwistGamma5Type type)
Apply the twisted-mass gamma operator to a color-spinor field.
void ApplyTwistedMass(ColorSpinorField &out, const ColorSpinorField &in, const GaugeField &U, double a, double b, const ColorSpinorField &x, int parity, bool dagger, const int *comm_override, TimeProfile &profile)
void ApplyTwistedMassPreconditioned(ColorSpinorField &out, const ColorSpinorField &in, const GaugeField &U, double a, double b, bool xpay, const ColorSpinorField &x, int parity, bool dagger, bool asymmetric, const int *comm_override, TimeProfile &profile)
Driver for applying the preconditioned twisted-mass stencil.
void CoarseOp(GaugeField &Y, GaugeField &X, const Transfer &T, const cudaGaugeField &gauge, const cudaCloverField *clover, double kappa, double mass, double mu, double mu_factor, QudaDiracType dirac, QudaMatPCType matpc)
Coarse operator construction from a fine-grid operator (Wilson / Clover)
void ApplyNdegTwistedMassPreconditioned(ColorSpinorField &out, const ColorSpinorField &in, const GaugeField &U, double a, double b, double c, bool xpay, const ColorSpinorField &x, int parity, bool dagger, bool asymmetric, const int *comm_override, TimeProfile &profile)
Driver for applying the preconditioned non-degenerate twisted-mass stencil.