34 namespace Test_PolyakovLoop {
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());
85 vout.
general(vl,
" readfile = %s\n", readfile.c_str());
86 vout.
general(vl,
" rand_type = %s\n", str_rand_type.c_str());
88 vout.
general(vl,
" vlevel = %s\n", str_vlevel.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());
139 vout.
detailed(vl,
"check skipped: expected_result not set.\n\n");
virtual void set_parameters(const Parameters ¶ms)
setting parameters: only for Polyakov loop correlators.
const std::string test_name
void detailed(const char *format,...)
void general(const char *format,...)
Parameters lookup(const string &key) const
static bool RegisterTest(const std::string &key, const Test_function func)
static bool initialize(const std::string &rng_type, unsigned long seed)
void read(Field_G *U, const string &filename=string())
unsigned long get_unsigned_long(const string &key) const
double get_double(const string &key) const
Polyakov loop measurement.
int non_NULL(const std::string v)
bool is_set(const string &key) const
void crucial(const char *format,...)
static void read(const std::string ¶ms_file, Parameters ¶ms)
int verify(const double result, const double expected, double eps)
GaugeConfig class for file I/O of gauge configuration.
string get_string(const string &key) const
void report(const Bridge::VerboseLevel vl=Bridge::GENERAL)
static VerboseLevel set_verbose_level(const std::string &str)
dcomplex measure_ploop(const Field_G &U)
Polyakov loop measurement.