Bridge++  Ver. 2.0.2
fopr_Smeared_eo.cpp
Go to the documentation of this file.
1 
14 #include "fopr_Smeared_eo.h"
15 
16 #ifdef USE_FACTORY_AUTOREGISTER
17 namespace {
18  bool init = Fopr_Smeared_eo::register_factory();
19 }
20 #endif
21 
22 const std::string Fopr_Smeared_eo::class_name = "Fopr_Smeared_eo";
23 
24 //====================================================================
26 {
27  std::string vlevel;
28  if (!params.fetch_string("verbose_level", vlevel)) {
29  m_vl = vout.set_verbose_level(vlevel);
30  }
31 }
32 
33 
34 //====================================================================
36 {
37  params.set_string("verbose_level", vout.get_verbose_level(m_vl));
38 }
39 
40 
41 //====================================================================
43 {
44  const int Nvol = CommonParameters::Nvol();
45  const int Ndim = CommonParameters::Ndim();
46 
48 
49  const int Nsmear = m_dr_smear->get_Nsmear();
50  Field *Uptr = m_dr_smear->getptr_smearedConfig(Nsmear);
51 
52  m_fopr_eo->set_config(Uptr);
53 }
54 
55 
56 //====================================================================
58 {
59  //- Counting of floating point operations in giga unit.
60  // not implemented, yet.
61 
62  vout.general(m_vl, "Warning at %s: flop_count() has not been implemented.\n", class_name.c_str());
63 
64  const double gflop = 0.0;
65 
66  return gflop;
67 }
68 
69 
70 //====================================================================
71 //============================================================END=====
Parameters::set_string
void set_string(const string &key, const string &value)
Definition: parameters.cpp:39
CommonParameters::Ndim
static int Ndim()
Definition: commonParameters.h:117
Parameters
Class for parameters.
Definition: parameters.h:46
Fopr_Smeared_eo::m_fopr_eo
Fopr_eo * m_fopr_eo
Definition: fopr_Smeared_eo.h:49
CommonParameters::Nvol
static int Nvol()
Definition: commonParameters.h:109
Fopr_Smeared_eo::get_parameters
void get_parameters(Parameters &) const
gets parameters by a Parameter object: to be implemented in a subclass.
Definition: fopr_Smeared_eo.cpp:35
Fopr_Smeared_eo::flop_count
double flop_count()
this returns the number of floating point operations.
Definition: fopr_Smeared_eo.cpp:57
Director_Smear::getptr_smearedConfig
Field * getptr_smearedConfig(const int i_smear)
get pointer to i-th smeared config (0th is original thin link)
Definition: director_Smear.cpp:88
Fopr_Smeared_eo::m_dr_smear
Director_Smear * m_dr_smear
Definition: fopr_Smeared_eo.h:50
Fopr_Smeared_eo::m_vl
Bridge::VerboseLevel m_vl
Definition: fopr_Smeared_eo.h:47
AFopr_eo::set_config
virtual void set_config(Field *)=0
setting pointer to the gauge configuration.
Fopr_Smeared_eo::set_config
void set_config(Field *U)
set pointer to original thin link variable
Definition: fopr_Smeared_eo.cpp:42
Bridge::BridgeIO::set_verbose_level
static VerboseLevel set_verbose_level(const std::string &str)
Definition: bridgeIO.cpp:133
Director_Smear::get_Nsmear
int get_Nsmear()
get number of applied smearing operation
Definition: director_Smear.h:83
Fopr_Smeared_eo::class_name
static const std::string class_name
Definition: fopr_Smeared_eo.h:44
Parameters::fetch_string
int fetch_string(const string &key, string &value) const
Definition: parameters.cpp:378
Field
Container of Field-type object.
Definition: field.h:46
fopr_Smeared_eo.h
Director_Smear::set_config
void set_config(Field *U)
set pointer to original thin link variable
Definition: director_Smear.cpp:79
Fopr_Smeared_eo::set_parameters
void set_parameters(const Parameters &)
sets parameters by a Parameter object: to be implemented in a subclass.
Definition: fopr_Smeared_eo.cpp:25
Bridge::BridgeIO::general
void general(const char *format,...)
Definition: bridgeIO.cpp:200
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512
Bridge::BridgeIO::get_verbose_level
static std::string get_verbose_level(const VerboseLevel vl)
Definition: bridgeIO.cpp:154