35 const std::string
test_name =
"Gauge.Plaquette";
59 #ifdef USE_TESTMANAGER_AUTOREGISTER
61 #if defined(USE_GROUP_SU2)
65 "Gauge.Plaquette.lex",
89 const string str_gconf_status = params_test.
get_string(
"gauge_config_status");
90 const string str_gconf_read = params_test.
get_string(
"gauge_config_type_input");
91 const string readfile = params_test.
get_string(
"config_filename_input");
92 const string str_rand_type = params_test.
get_string(
"random_number_type");
93 const unsigned long seed = params_test.
get_unsigned_long(
"seed_for_random_number");
94 const string str_vlevel = params_test.
get_string(
"verbose_level");
96 const bool do_check = params_test.
is_set(
"expected_result");
97 const double expected_result = do_check ? params_test.
get_double(
"expected_result") : 0.0;
99 const string str_index_type = params_staple.
get_string(
"index_type");
104 vout.
general(
vl,
" gconf_status = %s\n", str_gconf_status.c_str());
105 vout.
general(
vl,
" gconf_read = %s\n", str_gconf_read.c_str());
107 vout.
general(
vl,
" rand_type = %s\n", str_rand_type.c_str());
127 if (str_gconf_status ==
"Continue") {
129 }
else if (str_gconf_status ==
"Cold_start") {
131 }
else if (str_gconf_status ==
"Hot_start") {
134 vout.
crucial(
vl,
"Error at %s: unsupported gconf status \"%s\"\n",
test_name.c_str(), str_gconf_status.c_str());
140 unique_ptr<Staple> staple(Staple::New(str_index_type));
141 staple->set_parameters(params_staple);
149 const double result = staple->plaquette(U);