44 const std::string
test_name =
"QuarkNumberSusceptibility.Clover_Isochemical";
48 const std::string filename_input =
"test_QuarkNumberSusceptibility_Clover_Isochemical.yaml";
54 #ifdef USE_TESTMANAGER_AUTOREGISTER
56 #if defined(USE_GROUP_SU2)
77 const Parameters params_test = params_all.
lookup(
"Test_QuarkNumSuscept_Clover_Isochemical");
84 const string str_gconf_status = params_test.
get_string(
"gauge_config_status");
85 const string str_gconf_read = params_test.
get_string(
"gauge_config_type_input");
86 const string readfile = params_test.
get_string(
"config_filename_input");
87 const string str_rand_type = params_test.
get_string(
"random_number_type");
88 const unsigned long seed = params_test.
get_unsigned_long(
"seed_for_random_number");
89 const int i_seed_noise = params_test.
get_int(
"int_seed_for_noise");
90 const string str_vlevel = params_test.
get_string(
"verbose_level");
92 const bool do_check = params_test.
is_set(
"expected_result");
93 const double expected_result = do_check ? params_test.
get_double(
"expected_result") : 0.0;
95 const string str_gmset_type = params_clover.
get_string(
"gamma_matrix_type");
96 const string str_proj_type = params_proj.
get_string(
"projection_type");
97 const string str_smear_type = params_smear.
get_string(
"smear_type");
98 const int Nsmear = params_dr_smear.
get_int(
"number_of_smearing");
99 const string str_solver_type = params_solver.
get_string(
"solver_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());
111 vout.
general(
vl,
" gmset_type = %s\n", str_gmset_type.c_str());
112 vout.
general(
vl,
" proj_type = %s\n", str_proj_type.c_str());
113 vout.
general(
vl,
" smear_type = %s\n", str_smear_type.c_str());
114 vout.
general(
vl,
" solver_type = %s\n", str_solver_type.c_str());
126 if ((Nsmear > 0) && (str_proj_type ==
"Stout_SU3")) {
140 if (str_gconf_status ==
"Continue") {
142 }
else if (str_gconf_status ==
"Cold_start") {
144 }
else if (str_gconf_status ==
"Hot_start") {
147 vout.
crucial(
vl,
"Error at %s: unsupported gconf status \"%s\"\n",
test_name.c_str(), str_gconf_status.c_str());
152 unique_ptr<Projection> proj(Projection::New(str_proj_type, params_all.
lookup(
"Projection")));
153 unique_ptr<Smear> smear(Smear::New(str_smear_type, proj.get(), params_all.
lookup(
"Smear")));
154 unique_ptr<Director_Smear> dr_smear(
new Director_Smear(smear.get(), params_all.
lookup(
"Director_Smear")));
155 dr_smear->set_config(&U);
157 const Field_G *Usmear = (
Field_G *)dr_smear->getptr_smearedConfig(Nsmear);
164 fopr->set_config(&U);
170 unique_ptr<Solver>
solver(Solver::New(str_solver_type, fopr.get(), params_solver));
181 const double result = quark_suscept->measure();