Bridge++  Ver. 2.0.2
afopr_Smeared-tmpl.h
Go to the documentation of this file.
1 
14 #include "Fopr/afopr_Smeared.h"
15 
16 //#ifdef USE_FACTORY_AUTOREGISTER
17 //namespace {
18 // bool init = AFopr_Smeared::register_factory();
19 //}
20 //#endif
21 
22 template<typename AFIELD>
23 const std::string AFopr_Smeared<AFIELD>::class_name = "AFopr_Smeared";
24 
25 //====================================================================
26 template<typename AFIELD>
28 {
29  std::string vlevel;
30  if (!params.fetch_string("verbose_level", vlevel)) {
31  m_vl = vout.set_verbose_level(vlevel);
32  }
33 }
34 
35 
36 //====================================================================
37 template<typename AFIELD>
39 {
40  params.set_string("verbose_level", vout.get_verbose_level(m_vl));
41 }
42 
43 
44 //====================================================================
45 template<typename AFIELD>
47 {
48  m_dr_smear->set_config(U);
49 
50  const int Nsmear = m_dr_smear->get_Nsmear();
51  Field *Uptr = m_dr_smear->getptr_smearedConfig(Nsmear);
52 
53  m_fopr->set_config(Uptr);
54 }
55 
56 
57 //====================================================================
58 template<typename AFIELD>
60 {
61  double flop_fopr = m_fopr->flop_count();
62 
63  return flop_fopr;
64 }
65 
66 
67 //============================================================END=====
Parameters::set_string
void set_string(const string &key, const string &value)
Definition: parameters.cpp:39
AFopr_Smeared::flop_count
double flop_count()
returns floating operation counts.
Definition: afopr_Smeared-tmpl.h:59
Parameters
Class for parameters.
Definition: parameters.h:46
AFopr_Smeared::set_parameters
void set_parameters(const Parameters &)
sets parameters by a Parameter object: to be implemented in a subclass.
Definition: afopr_Smeared-tmpl.h:27
afopr_Smeared.h
AFopr_Smeared
smeared fermion operator: alternative version.
Definition: afopr_Smeared.h:41
AFopr_Smeared::get_parameters
void get_parameters(Parameters &) const
gets parameters by a Parameter object: to be implemented in a subclass.
Definition: afopr_Smeared-tmpl.h:38
Bridge::BridgeIO::set_verbose_level
static VerboseLevel set_verbose_level(const std::string &str)
Definition: bridgeIO.cpp:133
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
AFopr_Smeared::set_config
void set_config(Field *U)
set pointer to original thin link variable
Definition: afopr_Smeared-tmpl.h:46
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