Go to the documentation of this file.
39 const std::string filename_input =
"test_PolyakovLoop.yaml";
45 #ifdef USE_TESTMANAGER_AUTOREGISTER
47 #if defined(USE_GROUP_SU2)
70 const string str_gconf_status = params_test.
get_string(
"gauge_config_status");
71 const string str_gconf_read = params_test.
get_string(
"gauge_config_type_input");
72 const string readfile = params_test.
get_string(
"config_filename_input");
73 const string str_rand_type = params_test.
get_string(
"random_number_type");
74 const unsigned long seed = params_test.
get_unsigned_long(
"seed_for_random_number");
75 const string str_vlevel = params_test.
get_string(
"verbose_level");
77 const bool do_check = params_test.
is_set(
"expected_result");
78 const double expected_result = do_check ? params_test.
get_double(
"expected_result") : 0.0;
83 vout.
general(
vl,
" gconf_status = %s\n", str_gconf_status.c_str());
84 vout.
general(
vl,
" gconf_read = %s\n", str_gconf_read.c_str());
107 if (str_gconf_status ==
"Continue") {
109 }
else if (str_gconf_status ==
"Cold_start") {
111 }
else if (str_gconf_status ==
"Hot_start") {
114 vout.
crucial(
vl,
"Error at %s: unsupported gconf status \"%s\"\n",
test_name.c_str(), str_gconf_status.c_str());
int verify(const double result, const double expected, double eps)
int non_NULL(const std::string v)
const std::string test_name
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)
dcomplex measure_ploop(const Field_G &U)
Polyakov loop measurement.
Measurement of Polyakov loop.
static void read(const std::string ¶ms_file, Parameters ¶ms)
double get_double(const string &key) const
Polyakov loop measurement.
unsigned long get_unsigned_long(const string &key) const
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
string get_string(const string &key) const
void crucial(const char *format,...)
void general(const char *format,...)
Parameters lookup(const string &key) const
void report(const Bridge::VerboseLevel vl=Bridge::GENERAL)
static bool RegisterTest(const std::string &key, const Test_function func)