Bridge++  Ver. 2.0.2
Fopr_Wilson_SF Class Reference

Wilson fermion operator with SF BC. More...

#include <fopr_Wilson_SF.h>

Inheritance diagram for Fopr_Wilson_SF:
AFopr< Field >

Public Member Functions

 Fopr_Wilson_SF ()
 
 Fopr_Wilson_SF (const Parameters &params)
 
void set_parameters (const Parameters &params)
 sets parameters by a Parameter object: to be implemented in a subclass. More...
 
void set_parameters (const double kappa, const std::vector< int > bc)
 
void get_parameters (Parameters &params) const
 gets parameters by a Parameter object: to be implemented in a subclass. More...
 
void set_config (Field *U)
 sets the gauge configuration. More...
 
 ~Fopr_Wilson_SF ()
 
void mult (Field &v, const Field &f)
 multiplies fermion operator to a given field. More...
 
void mult_dag (Field &v, const Field &f)
 hermitian conjugate of mult. More...
 
void mult (Field &v, const Field &f, const std::string mode)
 executes mult with specified mode (unchanging internal mode). More...
 
void mult_dag (Field &v, const Field &f, const std::string mode)
 executes mult_dag with specified mode (unchanging internal mode). More...
 
void set_mode (const std::string mode)
 setting the mode of multiplication if necessary. Default implementation here is just to avoid irrelevant call. More...
 
std::string get_mode () const
 
void DdagD (Field &, const Field &)
 
void D (Field &, const Field &)
 
void Ddag (Field &, const Field &)
 
void H (Field &, const Field &)
 
void mult_gm5 (Field &v, const Field &w)
 multiplies gamma_5 matrix. More...
 
void mult_gm5p (const int mu, Field &v, const Field &w)
 
int field_nvol ()
 returns the volume of the fermion field. More...
 
int field_nin ()
 returns the on-site degree of freedom of the fermion field. More...
 
int field_nex ()
 returns the external degree of freedom of the fermion field. More...
 
double flop_count ()
 this returns the number of floating point operations. More...
 
- Public Member Functions inherited from AFopr< Field >
 AFopr ()
 
virtual ~AFopr ()
 
virtual std::string get_mode () const
 returns the current mult mode. More...
 
virtual void mult_up (int mu, Field &, const Field &)
 upward nearest neighbor hopping term. More...
 
virtual void mult_dn (int mu, Field &, const Field &)
 downward nearest neighbor hopping term. More...
 
virtual void normalize_fprop (Field &)
 normalize propagator if necessary (default: do nothing) More...
 
virtual void normalize_fopr (Field &)
 normalize propagator if necessary (default: do nothing) More...
 
virtual double flop_count (const std::string mode)
 returns the flops per site for specified mode. More...
 
virtual bool needs_convert ()
 returns true if additional field conversion is needed. More...
 
virtual void convert (Field &, const Field &)
 converts a Field object into other format if necessary. More...
 
virtual void reverse (Field &, const Field &)
 converts an alternative field to a Field object. More...
 

Static Public Attributes

static const std::string class_name = "Fopr_Wilson_SF"
 

Private Member Functions

void init ()
 
void tidyup ()
 
void set_boundary_zero (Field &)
 A function to set the fermion field to zero at the t=0 boundary. More...
 

Private Attributes

Bridge::VerboseLevel m_vl
 
int m_Nvol
 
int m_Ndim
 
int m_Nc
 
int m_Nd
 
int m_NinF
 
double m_kappa
 
std::vector< int > m_boundary
 
std::string m_repr
 
std::string m_mode
 
Fopr_Wilsonm_fopr_w
 
const Field_Gm_U
 
Field m_w1
 
Field m_w2
 

Additional Inherited Members

- Static Protected Attributes inherited from AFopr< Field >
static const std::string class_name
 

Detailed Description

Wilson fermion operator with SF BC.

This class implements the Wilson fermion operator with the SF BC.

  • The SF BC for the fermion field is:
    • The fermion field at t=0 is always set to zero (Dirichlet BC).
    • The field at t=1,...,Lt-1 is active.
  • Implemented by delegation of the Fopr_Wilson class like Fopr_Clover.
  • The modification is only in Fopr_Wilson_SF::D to set the boundary fermion field to zero before and after multiplication of the standard Wilson Dirac operator.
    • By this manipulation the SF BC is introduced in the fermion field.
  • A private function set_boundary_zero(Field&) is introduced for this bounadry manipulation.
  • A few private members are added for this function.
  • [04 Apr 2012 Y.Taniguchi]

(Coding history will be recovered from trac.) YAML is implemented. [14 Nov 2012 Y.Namekawa] unique_ptr is introduced to avoid memory leaks [21 Mar 2015 Y.Namekawa] Multi-threading appled. [29 Dec 2022 H.Matsufuru]

Definition at line 51 of file fopr_Wilson_SF.h.

Constructor & Destructor Documentation

◆ Fopr_Wilson_SF() [1/2]

Fopr_Wilson_SF::Fopr_Wilson_SF ( )
inline

Definition at line 73 of file fopr_Wilson_SF.h.

◆ Fopr_Wilson_SF() [2/2]

Fopr_Wilson_SF::Fopr_Wilson_SF ( const Parameters params)
inline

Definition at line 75 of file fopr_Wilson_SF.h.

◆ ~Fopr_Wilson_SF()

Fopr_Wilson_SF::~Fopr_Wilson_SF ( )
inline

Definition at line 88 of file fopr_Wilson_SF.h.

Member Function Documentation

◆ D()

void Fopr_Wilson_SF::D ( Field v,
const Field w 
)

Definition at line 277 of file fopr_Wilson_SF.cpp.

◆ Ddag()

void Fopr_Wilson_SF::Ddag ( Field w,
const Field f 
)

Definition at line 253 of file fopr_Wilson_SF.cpp.

◆ DdagD()

void Fopr_Wilson_SF::DdagD ( Field w,
const Field f 
)

Definition at line 243 of file fopr_Wilson_SF.cpp.

◆ field_nex()

int Fopr_Wilson_SF::field_nex ( )
inlinevirtual

returns the external degree of freedom of the fermion field.

Implements AFopr< Field >.

Definition at line 113 of file fopr_Wilson_SF.h.

◆ field_nin()

int Fopr_Wilson_SF::field_nin ( )
inlinevirtual

returns the on-site degree of freedom of the fermion field.

Implements AFopr< Field >.

Definition at line 112 of file fopr_Wilson_SF.h.

◆ field_nvol()

int Fopr_Wilson_SF::field_nvol ( )
inlinevirtual

returns the volume of the fermion field.

Implements AFopr< Field >.

Definition at line 111 of file fopr_Wilson_SF.h.

◆ flop_count()

double Fopr_Wilson_SF::flop_count ( )
virtual

this returns the number of floating point operations.

Reimplemented from AFopr< Field >.

Definition at line 309 of file fopr_Wilson_SF.cpp.

◆ get_mode()

std::string Fopr_Wilson_SF::get_mode ( ) const
inline

Definition at line 100 of file fopr_Wilson_SF.h.

◆ get_parameters()

void Fopr_Wilson_SF::get_parameters ( Parameters params) const
virtual

gets parameters by a Parameter object: to be implemented in a subclass.

Reimplemented from AFopr< Field >.

Definition at line 129 of file fopr_Wilson_SF.cpp.

◆ H()

void Fopr_Wilson_SF::H ( Field w,
const Field f 
)

Definition at line 262 of file fopr_Wilson_SF.cpp.

◆ init()

void Fopr_Wilson_SF::init ( )
private

Definition at line 29 of file fopr_Wilson_SF.cpp.

◆ mult() [1/2]

void Fopr_Wilson_SF::mult ( Field ,
const Field  
)
virtual

multiplies fermion operator to a given field.

Reimplemented from AFopr< Field >.

Definition at line 153 of file fopr_Wilson_SF.cpp.

◆ mult() [2/2]

void Fopr_Wilson_SF::mult ( Field ,
const Field ,
const std::string  mode 
)
virtual

executes mult with specified mode (unchanging internal mode).

Reimplemented from AFopr< Field >.

Definition at line 191 of file fopr_Wilson_SF.cpp.

◆ mult_dag() [1/2]

void Fopr_Wilson_SF::mult_dag ( Field ,
const Field  
)
virtual

hermitian conjugate of mult.

Reimplemented from AFopr< Field >.

Definition at line 172 of file fopr_Wilson_SF.cpp.

◆ mult_dag() [2/2]

void Fopr_Wilson_SF::mult_dag ( Field ,
const Field ,
const std::string  mode 
)
virtual

executes mult_dag with specified mode (unchanging internal mode).

Reimplemented from AFopr< Field >.

Definition at line 211 of file fopr_Wilson_SF.cpp.

◆ mult_gm5()

void Fopr_Wilson_SF::mult_gm5 ( Field ,
const Field  
)
virtual

multiplies gamma_5 matrix.

Reimplemented from AFopr< Field >.

Definition at line 270 of file fopr_Wilson_SF.cpp.

◆ mult_gm5p()

void Fopr_Wilson_SF::mult_gm5p ( const int  mu,
Field v,
const Field w 
)

Definition at line 290 of file fopr_Wilson_SF.cpp.

◆ set_boundary_zero()

void Fopr_Wilson_SF::set_boundary_zero ( Field )
private

A function to set the fermion field to zero at the t=0 boundary.

◆ set_config()

void Fopr_Wilson_SF::set_config ( Field )
virtual

sets the gauge configuration.

Implements AFopr< Field >.

Definition at line 140 of file fopr_Wilson_SF.cpp.

◆ set_mode()

void Fopr_Wilson_SF::set_mode ( const std::string  mode)
virtual

setting the mode of multiplication if necessary. Default implementation here is just to avoid irrelevant call.

Reimplemented from AFopr< Field >.

Definition at line 231 of file fopr_Wilson_SF.cpp.

◆ set_parameters() [1/2]

void Fopr_Wilson_SF::set_parameters ( const double  kappa,
const std::vector< int >  bc 
)

Definition at line 91 of file fopr_Wilson_SF.cpp.

◆ set_parameters() [2/2]

void Fopr_Wilson_SF::set_parameters ( const Parameters params)
virtual

sets parameters by a Parameter object: to be implemented in a subclass.

Reimplemented from AFopr< Field >.

Definition at line 65 of file fopr_Wilson_SF.cpp.

◆ tidyup()

void Fopr_Wilson_SF::tidyup ( )
private

Definition at line 58 of file fopr_Wilson_SF.cpp.

Member Data Documentation

◆ class_name

const std::string Fopr_Wilson_SF::class_name = "Fopr_Wilson_SF"
static

Definition at line 54 of file fopr_Wilson_SF.h.

◆ m_boundary

std::vector<int> Fopr_Wilson_SF::m_boundary
private

Definition at line 61 of file fopr_Wilson_SF.h.

◆ m_fopr_w

Fopr_Wilson* Fopr_Wilson_SF::m_fopr_w
private

Definition at line 66 of file fopr_Wilson_SF.h.

◆ m_kappa

double Fopr_Wilson_SF::m_kappa
private

Definition at line 60 of file fopr_Wilson_SF.h.

◆ m_mode

std::string Fopr_Wilson_SF::m_mode
private

Definition at line 64 of file fopr_Wilson_SF.h.

◆ m_Nc

int Fopr_Wilson_SF::m_Nc
private

Definition at line 59 of file fopr_Wilson_SF.h.

◆ m_Nd

int Fopr_Wilson_SF::m_Nd
private

Definition at line 59 of file fopr_Wilson_SF.h.

◆ m_Ndim

int Fopr_Wilson_SF::m_Ndim
private

Definition at line 59 of file fopr_Wilson_SF.h.

◆ m_NinF

int Fopr_Wilson_SF::m_NinF
private

Definition at line 59 of file fopr_Wilson_SF.h.

◆ m_Nvol

int Fopr_Wilson_SF::m_Nvol
private

Definition at line 59 of file fopr_Wilson_SF.h.

◆ m_repr

std::string Fopr_Wilson_SF::m_repr
private

Definition at line 62 of file fopr_Wilson_SF.h.

◆ m_U

const Field_G* Fopr_Wilson_SF::m_U
private

Definition at line 67 of file fopr_Wilson_SF.h.

◆ m_vl

Bridge::VerboseLevel Fopr_Wilson_SF::m_vl
private

Definition at line 57 of file fopr_Wilson_SF.h.

◆ m_w1

Field Fopr_Wilson_SF::m_w1
private

Definition at line 69 of file fopr_Wilson_SF.h.

◆ m_w2

Field Fopr_Wilson_SF::m_w2
private

Definition at line 69 of file fopr_Wilson_SF.h.


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