CHROMA
Public Types | Public Member Functions | Private Attributes | List of all members

Unpreconditioned Wilson-Dirac operator with parity breaking term. More...

#include <unprec_parwilson_linop_w.h>

Inheritance diagram for Chroma::UnprecParWilsonLinOp:
Chroma::UnprecLinearOperator< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > Chroma::DiffLinearOperator< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > Chroma::LinearOperator< LatticeFermion >

Public Types

typedef LatticeFermion T
 
typedef multi1d< LatticeColorMatrix > P
 
typedef multi1d< LatticeColorMatrix > Q
 

Public Member Functions

 UnprecParWilsonLinOp ()
 Partial constructor. More...
 
 UnprecParWilsonLinOp (Handle< FermState< T, P, Q > > fs, const Real &Mass_, const Real &H_)
 Full constructor. More...
 
 ~UnprecParWilsonLinOp ()
 Destructor is automatic. More...
 
const Subset & subset () const
 Only defined on the odd subset. More...
 
const FermBC< T, P, Q > & getFermBC () const
 Return the fermion BC object for this linear operator. More...
 
void create (Handle< FermState< T, P, Q > > fs, const Real &Mass_, const Real &H_)
 Creation routine. More...
 
void operator() (LatticeFermion &chi, const LatticeFermion &psi, enum PlusMinus isign) const
 Apply the operator onto a source std::vector. More...
 
void deriv (multi1d< LatticeColorMatrix > &ds_u, const LatticeFermion &chi, const LatticeFermion &psi, enum PlusMinus isign) const
 Derivative of unpreconditioned ParWilson dM/dU. More...
 
- Public Member Functions inherited from Chroma::UnprecLinearOperator< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >
virtual ~UnprecLinearOperator ()
 Virtual destructor to help with cleanup;. More...
 
const Subset & subset () const
 Only defined on the entire lattice. More...
 
- Public Member Functions inherited from Chroma::DiffLinearOperator< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >
virtual ~DiffLinearOperator ()
 Virtual destructor to help with cleanup;. More...
 
virtual void deriv (multi1d< LatticeColorMatrix > &ds_u, const LatticeFermion &chi, const LatticeFermion &psi, enum PlusMinus isign, const Real &epsilon) const
 Apply the derivative of the operator onto a source std::vector to some precision. More...
 
virtual void derivMultipole (multi1d< LatticeColorMatrix > &ds_u, const multi1d< LatticeFermion > &chi, const multi1d< LatticeFermion > &psi, enum PlusMinus isign) const
 Return the force for multiple poles. More...
 
- Public Member Functions inherited from Chroma::LinearOperator< LatticeFermion >
virtual ~LinearOperator ()
 Virtual destructor to help with cleanup;. More...
 
virtual void operator() (LatticeFermion &chi, const LatticeFermion &psi, enum PlusMinus isign, Real epsilon) const
 Apply the operator onto a source std::vector to some precision. More...
 
virtual unsigned long nFlops () const
 

Private Attributes

Real Mass
 
Real H
 
WilsonDslash D
 

Detailed Description

Unpreconditioned Wilson-Dirac operator with parity breaking term.

This routine is specific to Wilson fermions!

                                                 ~      ~+

This subroutine applies the unpreconditioned matrix M or M the std::vector Psi,

               {   ~
               {   M(U) . Psi              if  ISign = PLUS
       Chi  =  {
               {   ~   +
               {   M(U)  . Psi             if  ISign = MINUS

Algorithm:

The kernel for Wilson fermions with a parity breaking term is

 M  =  (d+M) + i*H*gamma_5  - (1/2) D'

Definition at line 39 of file unprec_parwilson_linop_w.h.

Member Typedef Documentation

◆ P

typedef multi1d<LatticeColorMatrix> Chroma::UnprecParWilsonLinOp::P

Definition at line 45 of file unprec_parwilson_linop_w.h.

◆ Q

typedef multi1d<LatticeColorMatrix> Chroma::UnprecParWilsonLinOp::Q

Definition at line 46 of file unprec_parwilson_linop_w.h.

◆ T

typedef LatticeFermion Chroma::UnprecParWilsonLinOp::T

Definition at line 44 of file unprec_parwilson_linop_w.h.

Constructor & Destructor Documentation

◆ UnprecParWilsonLinOp() [1/2]

Chroma::UnprecParWilsonLinOp::UnprecParWilsonLinOp ( )
inline

Partial constructor.

Definition at line 49 of file unprec_parwilson_linop_w.h.

◆ UnprecParWilsonLinOp() [2/2]

Chroma::UnprecParWilsonLinOp::UnprecParWilsonLinOp ( Handle< FermState< T, P, Q > >  fs,
const Real &  Mass_,
const Real &  H_ 
)
inline

Full constructor.

Definition at line 52 of file unprec_parwilson_linop_w.h.

References create().

◆ ~UnprecParWilsonLinOp()

Chroma::UnprecParWilsonLinOp::~UnprecParWilsonLinOp ( )
inline

Destructor is automatic.

Definition at line 57 of file unprec_parwilson_linop_w.h.

Member Function Documentation

◆ deriv()

void Chroma::UnprecParWilsonLinOp::deriv ( multi1d< LatticeColorMatrix > &  ds_u,
const LatticeFermion &  chi,
const LatticeFermion &  psi,
enum PlusMinus  isign 
) const
virtual

Derivative of unpreconditioned ParWilson dM/dU.

Parameters
chileft std::vector on cb (Read)
psiright std::vector on 1-cb (Read)
isignD'^dag or D' ( MINUS | PLUS ) resp. (Read)
cbCheckerboard of chi std::vector (Read)
Returns
Computes $\chi^\dag * \dot(D} * \psi$

Reimplemented from Chroma::DiffLinearOperator< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >.

Definition at line 89 of file unprec_parwilson_linop_w.cc.

References chi, END_CODE, Chroma::isign, mu, Nd, psi, and START_CODE.

◆ getFermBC()

const FermBC<T,P,Q>& Chroma::UnprecParWilsonLinOp::getFermBC ( ) const
inlinevirtual

◆ subset()

const Subset& Chroma::UnprecParWilsonLinOp::subset ( void  ) const
inlinevirtual

Only defined on the odd subset.

Implements Chroma::LinearOperator< LatticeFermion >.

Definition at line 60 of file unprec_parwilson_linop_w.h.

Member Data Documentation

◆ D

WilsonDslash Chroma::UnprecParWilsonLinOp::D
private

Definition at line 81 of file unprec_parwilson_linop_w.h.

Referenced by getFermBC().

◆ H

Real Chroma::UnprecParWilsonLinOp::H
private

Definition at line 79 of file unprec_parwilson_linop_w.h.

◆ Mass

Real Chroma::UnprecParWilsonLinOp::Mass
private

Definition at line 78 of file unprec_parwilson_linop_w.h.


The documentation for this class was generated from the following files: