Go to the documentation of this file.
28 # if __has_include(<fj_tool/fapp.h>)
29 # include <fj_tool/fapp.h>
48 const std::string filename_input =
"test_Mult_Overlap.yaml";
54 #ifdef USE_TESTMANAGER_AUTOREGISTER
56 #if defined(USE_GROUP_SU2)
86 const string str_gconf_status = params_test.
get_string(
"gauge_config_status");
87 const string str_gconf_read = params_test.
get_string(
"gauge_config_type_input");
88 const string readfile = params_test.
get_string(
"config_filename_input");
89 const string str_rand_type = params_test.
get_string(
"random_number_type");
90 const unsigned long seed = params_test.
get_unsigned_long(
"seed_for_random_number");
91 const int Nmult = params_test.
get_int(
"number_of_mult");
92 const string str_vlevel = params_test.
get_string(
"verbose_level");
94 const bool do_check = params_test.
is_set(
"expected_result");
95 const double expected_result = do_check ? params_test.
get_double(
"expected_result") : 0.0;
96 const double tolerance = params_test.
get_double(
"tolerance");
101 vout.
general(
vl,
" gconf_status = %s\n", str_gconf_status.c_str());
102 vout.
general(
vl,
" gconf_read = %s\n", str_gconf_read.c_str());
104 vout.
general(
vl,
" rand_type = %s\n", str_rand_type.c_str());
125 if (str_gconf_status ==
"Continue") {
127 }
else if (str_gconf_status ==
"Cold_start") {
129 }
else if (str_gconf_status ==
"Hot_start") {
132 vout.
crucial(
vl,
"Error at %s: unsupported gconf status \"%s\"\n",
test_name.c_str(), str_gconf_status.c_str());
138 unique_ptr<Fopr_Wilson> fopr_w(
new Fopr_Wilson(params_wilson));
139 fopr_w->set_config(&U);
147 unique_ptr<Fopr> fopr_overlap(
new Fopr_Overlap(fopr_w.get(), params_overlap));
148 fopr_overlap->set_config(&U);
149 fopr_overlap->set_mode(
"D");
169 for (
int i = 0; i < Nmult; ++i) {
170 fopr_overlap->mult(y, b);
192 return Test::verify(result, expected_result, tolerance);
int verify(const double result, const double expected, double eps)
int non_NULL(const std::string v)
void set(const int jin, const int site, const int jex, double v)
int get_int(const string &key) const
void detailed(const char *format,...)
void read(Field_G &U, const string &filename=string())
static bool initialize(const std::string &rng_type, unsigned long seed)
AFopr_Overlap< Field > Fopr_Overlap
Overlap fermion operator.
static void read(const std::string ¶ms_file, Parameters ¶ms)
double get_double(const string &key) const
Test of Mult with Overlap fermion.
unsigned long get_unsigned_long(const string &key) const
static int get_num_threads_available()
returns number of threads (works outside of parallel region).
GaugeConfig class for file I/O of gauge configuration.
static VerboseLevel set_verbose_level(const std::string &str)
bool is_set(const string &key) const
const std::string test_name
Wilson-type fermion field.
string get_string(const string &key) const
void crucial(const char *format,...)
double elapsed_sec() const
void general(const char *format,...)
Parameters lookup(const string &key) const
static bool RegisterTest(const std::string &key, const Test_function func)
Org::Fopr_Wilson Fopr_Wilson
Wilson fermion operator.