41 namespace Test_Rational {
 
   42   const std::string 
test_name = 
"Rational.Smeared_Rational";
 
   46     const std::string filename_input  = 
"test_Rational_Smeared.yaml";
 
   47     const std::string filename_output = 
"stdout";
 
   49     class Parameters_Test_Rational : 
public Parameters {
 
   51       Parameters_Test_Rational()
 
   53         Register_string(
"gauge_config_status", 
"NULL");
 
   54         Register_string(
"gauge_config_type_input", 
"NULL");
 
   55         Register_string(
"config_filename_input", 
"NULL");
 
   57         Register_string(
"verbose_level", 
"NULL");
 
   59         Register_double(
"expected_result", 0.0);
 
   67 #ifdef USE_TESTMANAGER_AUTOREGISTER 
   69 #if defined(USE_GROUP_SU2) 
   88     int NinF = 2 * Nc * Nd;
 
   90     Parameters *params_test     = 
new Parameters_Test_Rational;
 
  108     params_manager.
read_params(filename_input, params_all);
 
  110     const string str_gconf_status = params_test->
get_string(
"gauge_config_status");
 
  111     const string str_gconf_read   = params_test->
get_string(
"gauge_config_type_input");
 
  112     const string readfile         = params_test->
get_string(
"config_filename_input");
 
  113     const string str_vlevel       = params_test->
get_string(
"verbose_level");
 
  115     const bool   do_check        = params_test->
is_set(
"expected_result");
 
  116     const double expected_result = do_check ? params_test->
get_double(
"expected_result") : 0.0;
 
  118     const string str_gmset_type  = params_clover->
get_string(
"gamma_matrix_type");
 
  119     const string str_proj_type   = params_proj->
get_string(
"projection_type");
 
  120     const string str_smear_type  = params_smear->
get_string(
"smear_type");
 
  121     const string str_source_type = params_source->
get_string(
"source_type");
 
  126     vout.
general(vl, 
"  gconf_status = %s\n", str_gconf_status.c_str());
 
  127     vout.
general(vl, 
"  gconf_read   = %s\n", str_gconf_read.c_str());
 
  128     vout.
general(vl, 
"  readfile     = %s\n", readfile.c_str());
 
  129     vout.
general(vl, 
"  vlevel       = %s\n", str_vlevel.c_str());
 
  130     vout.
general(vl, 
"  gmset_type   = %s\n", str_gmset_type.c_str());
 
  131     vout.
general(vl, 
"  proj_type    = %s\n", str_proj_type.c_str());
 
  132     vout.
general(vl, 
"  smear_type   = %s\n", str_smear_type.c_str());
 
  133     vout.
general(vl, 
"  source_type  = %s\n", str_source_type.c_str());
 
  150     if (str_gconf_status == 
"Continue") {
 
  152     } 
else if (str_gconf_status == 
"Cold_start") {
 
  154     } 
else if (str_gconf_status == 
"Hot_start") {
 
  158       vout.
crucial(vl, 
"%s: unsupported gconf status \"%s\".\n", 
test_name.c_str(), str_gconf_status.c_str());
 
  167     Projection *proj  = Projection::New(str_proj_type);
 
  168     Smear      *smear = Smear::New(str_smear_type, proj);
 
  177     Source *source = Source::New(str_source_type);
 
  197     Field   xq(NinF, Nvol, 1), b(NinF, Nvol, 1);
 
  198     Field   v(NinF, Nvol, 1), w(NinF, Nvol, 1);
 
  201     vout.
general(vl, 
"Consistency check of smeared-rational and rational-smeared.\n");
 
  212         int idx = icolor + Nc * ispin;
 
  213         source->
set(b2, idx);
 
  217         v = fopr_smear_2.
mult(b);
 
  220         w = fopr_smear_1.
mult(v);
 
  222         v = fopr_smear_2.
mult(w);
 
  225         double vv = v.
norm2();
 
  241         int idx = icolor + Nc * ispin;
 
  242         source->
set(b2, idx);
 
  246         v = fopr_r_smear_1.
mult(b);
 
  249         w = fopr_smear_1.
mult(v);
 
  251         v = fopr_r_smear_1.
mult(w);
 
  267     delete params_clover;
 
  270     delete params_dr_smear;
 
  271     delete params_rational;
 
  272     delete params_source;
 
  291       vout.
detailed(vl, 
"check skipped: expected_result not set.\n\n");
 
Random number generator base on M-series. 
 
Fermion operator for rational approximation. 
 
const std::string test_name
 
void read_params(const std::string ¶ms_file, Parameters *params)
read parameters from file. 
 
void detailed(const char *format,...)
 
int smeared_rational(void)
 
void general(const char *format,...)
 
Container of Field-type object. 
 
virtual void set_parameters(const Parameters &)=0
 
const Field mult(const Field &f)
multiplies fermion operator to a given field and returns the resultant field. 
 
static Parameters * New(const std::string &realm)
 
void set_random(RandomNumbers *rand)
 
Wilson-type fermion field. 
 
smeared fermion operator. 
 
static bool RegisterTest(const std::string &key, const Test_function func)
 
bool is_set(const string &) const 
 
double get_double(const string &key) const 
 
void set_config(Field *U)
setting pointer to the gauge configuration. 
 
int non_NULL(const std::string v)
 
virtual void set(Field &, int)=0
 
void crucial(const char *format,...)
 
void Register_Parameters(const string &, Parameters *const)
 
base class for projection operator into gauge group. 
 
void mult(Field &v, const Field &f)
multiply smeared fermion operator 
 
Manager of smeared configurations. 
 
void set_mode(std::string mode)
set the mode of fermion operator 
 
void set_parameters(const Parameters ¶ms)
 
void set_parameters(const Parameters ¶ms)
set paramters, must be called before set_config 
 
base class for smearing of link variables. 
 
Parameter manager with YAML parser. 
 
GaugeConfig class for file I/O of gauge configuration. 
 
Base class of fermion operator family. 
 
int verify(const double expected, const double result)
 
void read_file(Field *u, const string &filename)
 
Base class of sources for a linear solver. 
 
string get_string(const string &key) const 
 
void report(const Bridge::VerboseLevel vl=Bridge::GENERAL)
 
void set_config(Field *U)
set pointer to original thin link variable 
 
virtual void set_parameters(const Parameters &)=0
 
static VerboseLevel set_verbose_level(const std::string &str)
 
void set_parameters(const Parameters ¶ms)