Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
smear_APE_SF.h
Go to the documentation of this file.
1 
14 #ifndef SMEAR_APE_SF_INCLUDED
15 #define SMEAR_APE_SF_INCLUDED
16 
17 #include "smear.h"
18 
20 
21 #include "IO/bridgeIO.h"
22 using Bridge::vout;
23 
25 
36 class Smear_APE_SF : public Smear
37 {
38  public:
39  static const std::string class_name;
40 
41  private:
42  int m_Ndim;
43  std::valarray<double> m_rho;
45 
47  double m_phi[3];
49  double m_phipr[3];
50 
51  public:
53  : Smear(),
54  m_Ndim(CommonParameters::Ndim()), m_rho(0.0, m_Ndim * m_Ndim),
55  m_proj(proj) {}
56 
58  : Smear(),
59  m_Ndim(CommonParameters::Ndim()), m_rho(0.0, m_Ndim * m_Ndim),
60  m_proj(proj.get()) {}
61 
63 
64  void set_parameters(const Parameters& params);
65  void set_parameters(const double rho1, double *phi, double *phipr);
66  void set_parameters(const std::vector<double>& rho, double *phi, double *phipr);
67 
68  void smear(Field_G& Usmear, const Field_G& U);
69 
70 #ifdef USE_FACTORY
71  private:
72  static Smear *create_object(Projection *proj)
73  {
74  return new Smear_APE_SF(proj);
75  }
76 
77  public:
78  static bool register_factory()
79  {
80  return Smear::Factory::Register("APE_SF", create_object);
81  }
82 #endif
83 };
84 #endif
BridgeIO vout
Definition: bridgeIO.cpp:503
Projection * m_proj
Definition: smear_APE_SF.h:44
APE type smearing of link variables.
Definition: smear_APE_SF.h:36
Class for parameters.
Definition: parameters.h:46
double m_phi[3]
SF boundary condition at t=0.
Definition: smear_APE_SF.h:47
static const std::string class_name
Definition: smear_APE_SF.h:39
Smear_APE_SF(Projection *proj)
Definition: smear_APE_SF.h:52
SU(N) gauge field.
Definition: field_G.h:38
Common parameter class: provides parameters as singleton.
base class for projection operator into gauge group.
Definition: projection.h:30
void set_parameters(const Parameters &params)
double m_phipr[3]
SF boundary condition at t=Nt.
Definition: smear_APE_SF.h:49
std::valarray< double > m_rho
Definition: smear_APE_SF.h:43
Smear_APE_SF(unique_ptr< Projection > &proj)
Definition: smear_APE_SF.h:57
base class for smearing of link variables.
Definition: smear.h:34
void smear(Field_G &Usmear, const Field_G &U)