Bridge++  Ver. 2.0.2
fopr_Smeared.cpp
Go to the documentation of this file.
1 
14 #include "fopr_Smeared.h"
15 
16 #ifdef USE_FACTORY_AUTOREGISTER
17 namespace {
18  bool init = Fopr_Smeared::register_factory();
19 }
20 #endif
21 
22 const std::string Fopr_Smeared::class_name = "Fopr_Smeared";
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 {
45 
46  const int Nsmear = m_dr_smear->get_Nsmear();
47  Field *Uptr = m_dr_smear->getptr_smearedConfig(Nsmear);
48 
49  m_fopr->set_config(Uptr);
50 }
51 
52 
53 //====================================================================
55 {
56  //- Counting of floating point operations in giga unit.
57  // not implemented, yet.
58 
59  vout.general(m_vl, "Warning at %s: flop_count() has not been implemented.\n", class_name.c_str());
60 
61  const double gflop = 0.0;
62 
63  return gflop;
64 }
65 
66 
67 //====================================================================
68 //============================================================END=====
Fopr_Smeared::set_parameters
void set_parameters(const Parameters &)
sets parameters by a Parameter object: to be implemented in a subclass.
Definition: fopr_Smeared.cpp:25
Fopr_Smeared::class_name
static const std::string class_name
Definition: fopr_Smeared.h:44
Parameters::set_string
void set_string(const string &key, const string &value)
Definition: parameters.cpp:39
Parameters
Class for parameters.
Definition: parameters.h:46
Fopr_Smeared::flop_count
double flop_count()
this returns the number of floating point operations.
Definition: fopr_Smeared.cpp:54
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
AFopr::set_config
virtual void set_config(Field *)=0
sets the gauge configuration.
Fopr_Smeared::set_config
void set_config(Field *U)
set pointer to original thin link variable
Definition: fopr_Smeared.cpp:42
Fopr_Smeared::m_fopr
Fopr * m_fopr
Definition: fopr_Smeared.h:49
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
Parameters::fetch_string
int fetch_string(const string &key, string &value) const
Definition: parameters.cpp:378
fopr_Smeared.h
Field
Container of Field-type object.
Definition: field.h:46
Director_Smear::set_config
void set_config(Field *U)
set pointer to original thin link variable
Definition: director_Smear.cpp:79
Bridge::BridgeIO::general
void general(const char *format,...)
Definition: bridgeIO.cpp:200
Fopr_Smeared::get_parameters
void get_parameters(Parameters &) const
gets parameters by a Parameter object: to be implemented in a subclass.
Definition: fopr_Smeared.cpp:35
Fopr_Smeared::m_dr_smear
Director_Smear * m_dr_smear
Definition: fopr_Smeared.h:50
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
Fopr_Smeared::m_vl
Bridge::VerboseLevel m_vl
Definition: fopr_Smeared.h:47