40 const std::string filename_input =
"test_TopologicalCharge.yaml";
46 #ifdef USE_TESTMANAGER_AUTOREGISTER
48 #if defined(USE_GROUP_SU2)
73 const string str_gconf_status = params_test.
get_string(
"gauge_config_status");
74 const string str_gconf_read = params_test.
get_string(
"gauge_config_type_input");
75 const string readfile = params_test.
get_string(
"config_filename_input");
76 const string str_rand_type = params_test.
get_string(
"random_number_type");
77 const unsigned long seed = params_test.
get_unsigned_long(
"seed_for_random_number");
78 const int Nsmear = params_test.
get_int(
"number_of_max_smearing");
79 const int Nmeas = params_test.
get_int(
"number_of_measurement_step");
80 const string str_vlevel = params_test.
get_string(
"verbose_level");
82 const bool do_check = params_test.
is_set(
"expected_result");
83 const double expected_result = do_check ? params_test.
get_double(
"expected_result") : 0.0;
85 const string str_proj_type = params_proj.
get_string(
"projection_type");
86 const string str_smear_type = params_smear.
get_string(
"smear_type");
91 vout.
general(
vl,
" gconf_status = %s\n", str_gconf_status.c_str());
92 vout.
general(
vl,
" gconf_read = %s\n", str_gconf_read.c_str());
100 vout.
general(
vl,
" smear_type = %s\n", str_smear_type.c_str());
119 if (str_gconf_status ==
"Continue") {
121 }
else if (str_gconf_status ==
"Cold_start") {
123 }
else if (str_gconf_status ==
"Hot_start") {
126 vout.
crucial(
vl,
"Error at %s: unsupported gconf status \"%s\"\n",
test_name.c_str(), str_gconf_status.c_str());
134 unique_ptr<Projection> proj(Projection::New(str_proj_type, params_proj));
135 unique_ptr<Smear> smear(Smear::New(str_smear_type, proj.get(), params_smear));
147 for (
int i_smear = 0; i_smear <= Nsmear; ++i_smear) {
149 if (i_smear == 0)
copy(Usmear, Uorg);
150 if (i_smear > 0) smear->smear(Usmear, Uorg);
152 if ((i_smear % Nmeas) == 0) {
155 vout.
general(
vl,
"i_smear,Q = %d %20.16e\n", i_smear, result);