44 const std::string filename_input =
"test_HMC_Quenched.yaml";
50 #ifdef USE_TESTMANAGER_AUTOREGISTER
52 #if defined(USE_GROUP_SU2)
75 const Parameters params_integrator = params_all.
lookup(
"Builder_Integrator");
78 const string str_gconf_status = params_test.
get_string(
"gauge_config_status");
79 const string str_gconf_read = params_test.
get_string(
"gauge_config_type_input");
80 const string readfile = params_test.
get_string(
"config_filename_input");
81 const string str_gconf_write = params_test.
get_string(
"gauge_config_type_output");
82 const string writefile = params_test.
get_string(
"config_filename_output");
83 const string str_rand_type = params_test.
get_string(
"random_number_type");
84 const unsigned long seed = params_test.
get_unsigned_long(
"seed_for_random_number");
85 int i_conf = params_test.
get_int(
"trajectory_number");
86 const int Ntraj = params_test.
get_int(
"trajectory_number_step");
87 const int i_save_conf = params_test.
get_int(
"save_config_interval");
88 const string str_vlevel = params_test.
get_string(
"verbose_level");
90 const bool do_check = params_test.
is_set(
"expected_result");
91 const double expected_result = do_check ? params_test.
get_double(
"expected_result") : 0.0;
93 const string str_action_G_type = params_action_G.
get_string(
"action_type");
94 const int Nlevels = params_integrator.
get_int(
"number_of_levels");
95 const std::vector<int> level_action = params_integrator.
get_int_vector(
"level_of_actions");
100 vout.
general(
vl,
" gconf_status = %s\n", str_gconf_status.c_str());
101 vout.
general(
vl,
" gconf_read = %s\n", str_gconf_read.c_str());
103 vout.
general(
vl,
" gconf_write = %s\n", str_gconf_write.c_str());
105 vout.
general(
vl,
" rand_type = %s\n", str_rand_type.c_str());
132 if (str_gconf_status ==
"Continue") {
134 }
else if (str_gconf_status ==
"Cold_start") {
136 }
else if (str_gconf_status ==
"Hot_start") {
139 vout.
crucial(
vl,
"Error at %s: unsupported gconf status \"%s\"\n",
test_name.c_str(), str_gconf_status.c_str());
146 unique_ptr<Action> action_G(Action::New(str_action_G_type, params_action_G));
149 actions.
append(level_action[0], action_G.get());
151 unique_ptr<Builder_Integrator> builder(
new Builder_Integrator(actions, params_integrator));
156 HMC_General hmc(actions, integrator, rand.get(), params_hmc);
167 for (
int traj = 0; traj < Ntraj; ++traj) {
173 if ((i_conf + traj + 1) % i_save_conf == 0) {