Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
smear_APE_spatial.h
Go to the documentation of this file.
1 
14 #ifndef SMEAR_APE_SPATIAL_INCLUDED
15 #define SMEAR_APE_SPATIAL_INCLUDED
16 
17 #include "smear.h"
18 
20 
21 #include "IO/bridgeIO.h"
22 using Bridge::vout;
23 
24 
26 
40 class Smear_APE_spatial : public Smear
41 {
42  public:
43  static const std::string class_name;
44 
45  private:
46  int m_Ndim;
47  double m_rho;
49 
50  public:
53  : Smear(), m_Ndim(CommonParameters::Ndim()), m_proj(proj) {}
54 
56  : Smear(), m_Ndim(CommonParameters::Ndim()), m_proj(proj.get()) {}
57 
60 
62  void set_parameters(const Parameters& params);
63 
65  void set_parameters(const double rho);
66 
68  void smear(Field_G& Usmear, const Field_G& U);
69 
70  private:
71 
72 #ifdef USE_FACTORY
73  private:
74  static Smear *create_object(Projection *proj)
75  {
76  return new Smear_APE_spatial(proj);
77  }
78 
79  public:
80  static bool register_factory()
81  {
82  return Smear::Factory::Register("APE_spatial", create_object);
83  }
84 #endif
85 };
86 #endif
BridgeIO vout
Definition: bridgeIO.cpp:503
Projection * m_proj
projector to group element.
APE type smearing of spatial link variables.
~Smear_APE_spatial()
Deconstructor.
Smear_APE_spatial(Projection *proj)
Constructor requires a pointer to Projection object.
void smear(Field_G &Usmear, const Field_G &U)
Smearing of a given gauge field.
Class for parameters.
Definition: parameters.h:46
static const std::string class_name
Smear_APE_spatial(unique_ptr< Projection > &proj)
SU(N) gauge field.
Definition: field_G.h:38
void set_parameters(const Parameters &params)
Setting parameters with Parameters object.
Common parameter class: provides parameters as singleton.
base class for projection operator into gauge group.
Definition: projection.h:30
double m_rho
smearing parameter
base class for smearing of link variables.
Definition: smear.h:34
int m_Ndim
spacetime dimension