Bridge++
Ver.2.1.3
fopr_Smeared.h
Go to the documentation of this file.
1
10
#ifndef FOPR_SMEARED_INCLUDED
11
#define FOPR_SMEARED_INCLUDED
12
13
#include "
lib/Fopr/afopr_Smeared.h
"
14
#include "
lib/Field/field.h
"
15
//#include "lib/Smear/director_Smear.h"
16
#include "
lib/IO/bridgeIO.h
"
17
using
Bridge::vout
;
18
20
37
typedef
AFopr_Smeared<Field>
Fopr_Smeared
;
38
39
/*
40
class Fopr_Smeared : public Fopr
41
{
42
public:
43
static const std::string class_name;
44
45
private:
46
Bridge::VerboseLevel m_vl;
47
48
Fopr *m_fopr;
49
Director_Smear *m_dr_smear;
50
51
public:
53
Fopr_Smeared(Fopr *fopr, Director_Smear *dr_smear)
54
: m_vl(CommonParameters::Vlevel()), m_fopr(fopr), m_dr_smear(dr_smear) {}
55
56
Fopr_Smeared(Fopr *fopr, Director_Smear *dr_smear, const Parameters& params)
57
: m_vl(CommonParameters::Vlevel()), m_fopr(fopr), m_dr_smear(dr_smear)
58
{
59
set_parameters(params);
60
}
61
62
void set_parameters(const Parameters&);
63
64
void get_parameters(Parameters&) const;
65
67
void set_config(Field *U);
68
70
void mult(Field& v, const Field& f)
71
{
72
m_fopr->mult(v, f);
73
}
74
76
void mult_dag(Field& v, const Field& f)
77
{
78
m_fopr->mult_dag(v, f);
79
}
80
82
void set_mode(const std::string mode)
83
{
84
m_fopr->set_mode(mode);
85
}
86
87
std::string get_mode() const
88
{
89
return m_fopr->get_mode();
90
}
91
92
void mult_up(const int mu, Field& v, const Field& w)
93
{
94
m_fopr->mult_up(mu, v, w);
95
}
96
97
void mult_dn(const int mu, Field& v, const Field& w)
98
{
99
m_fopr->mult_dn(mu, v, w);
100
}
101
102
int field_nvol() { return m_fopr->field_nvol(); }
103
int field_nin() { return m_fopr->field_nin(); }
104
int field_nex() { return m_fopr->field_nex(); }
105
107
double flop_count();
108
109
#ifdef USE_FACTORY
110
private:
111
static Fopr *create_object(Fopr *fopr, Director *director)
112
{
113
return new Fopr_Smeared(fopr, dynamic_cast<Director_Smear *>(director));
114
}
115
116
static Fopr *create_object_with_params(Fopr *fopr, Director *director, const Parameters& params)
117
{
118
return new Fopr_Smeared(fopr, dynamic_cast<Director_Smear *>(director), params);
119
}
120
121
public:
122
static bool register_factory()
123
{
124
bool init = true;
125
init &= Fopr::Factory_fopr_director::Register("Smeared", create_object);
126
// init &= Fopr::Factory_fopr_director_params::Register("Smeared", create_object_with_params);
127
return init;
128
}
129
#endif
130
131
132
};
133
134
*/
135
#endif
bridgeIO.h
afopr_Smeared.h
AFopr_Smeared
smeared fermion operator: alternative version.
Definition:
afopr_Smeared.h:41
field.h
Fopr_Smeared
AFopr_Smeared< Field > Fopr_Smeared
smeared fermion operator.
Definition:
fopr_Smeared.h:37
Bridge::vout
BridgeIO vout
Definition:
bridgeIO.cpp:572
src
lib
Fopr
fopr_Smeared.h
Generated on Thu Apr 16 2026 22:04:17 for Bridge++ by
1.8.17