Bridge++  Version 1.4.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
fopr_Smeared_eo.cpp
Go to the documentation of this file.
1 
14 #include "fopr_Smeared_eo.h"
15 
16 const std::string Fopr_Smeared_eo::class_name = "Fopr_Smeared_eo";
17 
18 #ifdef USE_FACTORY
19 namespace {
20  Fopr *create_object(Fopr *fopr, Director *director)
21  {
22  return new Fopr_Smeared_eo(dynamic_cast<Fopr_eo *>(fopr), dynamic_cast<Director_Smear *>(director));
23  }
24 
25 
26  bool init = Fopr::Factory_fopr_director::Register("Smeared_eo", create_object);
27 }
28 #endif
29 
30 //====================================================================
32 {
33  const string str_vlevel = params.get_string("verbose_level");
34 
35  m_vl = vout.set_verbose_level(str_vlevel);
36 }
37 
38 
39 //====================================================================
41 {
42  int Nvol = CommonParameters::Nvol();
43  int Ndim = CommonParameters::Ndim();
44 
46 
47  int Nsmear = m_dr_smear->get_Nsmear();
48  Field *Uptr = m_dr_smear->getptr_smearedConfig(Nsmear);
49 
50  m_fopr_eo->set_config(Uptr);
51 }
52 
53 
54 //====================================================================
55 //============================================================END=====
BridgeIO vout
Definition: bridgeIO.cpp:495
void set_parameters(const Parameters &)
Container of Field-type object.
Definition: field.h:39
virtual void set_config(Field *)=0
setting pointer to the gauge configuration.
Director_Smear * m_dr_smear
Class for parameters.
Definition: parameters.h:46
smeared fermion operator with even-odd preconditioning.
Fopr_eo * m_fopr_eo
Manager of commonly used data object in HMC.
Definition: director.h:37
Field * getptr_smearedConfig(int i_smear)
get pointer to i-th smeared config (0th is original thin link)
Bridge::VerboseLevel m_vl
Definition: fopr.h:128
void set_config(Field *U)
set pointer to original thin link variable
void set_config(Field *U)
set pointer to original thin link variable
int get_Nsmear()
get number of applied smearing operation
Base class of fermion operator family.
Definition: fopr.h:47
string get_string(const string &key) const
Definition: parameters.cpp:116
static VerboseLevel set_verbose_level(const std::string &str)
Definition: bridgeIO.cpp:131
static const std::string class_name