19 const std::string
test_name =
"sample_HMC";
20 const std::string parameter_file =
"sample_HMC_Wilson_Leapfrog_Nf2.yaml";
53 const string str_gconf_status = params_test.
get_string(
"gauge_config_status");
54 const string str_gconf_read = params_test.
get_string(
"gauge_config_type_input");
55 const string readfile = params_test.
get_string(
"config_filename_input");
56 const string str_gconf_write = params_test.
get_string(
"gauge_config_type_output");
57 const string writefile = params_test.
get_string(
"config_filename_output");
58 const string str_rand_type = params_test.
get_string(
"random_number_type");
59 const unsigned long seed = params_test.
get_unsigned_long(
"seed_for_random_number");
60 int i_conf = params_test.
get_int(
"trajectory_number");
61 const int Ntraj = params_test.
get_int(
"trajectory_number_step");
62 const int i_save_conf = params_test.
get_int(
"save_config_interval");
63 const string str_vlevel = params_test.
get_string(
"verbose_level");
68 const string str_action_G_type = params_action_G.
get_string(
"action_type");
69 const string str_fopr_type = params_fopr.
get_string(
"fermion_type");
70 const string str_gmset_type = params_fopr.
get_string(
"gamma_matrix_type");
71 const string str_proj_type = params_proj.
get_string(
"projection_type");
72 const string str_smear_type = params_smear.
get_string(
"smear_type");
73 const string str_solver_MD_type = params_solver_MD.
get_string(
"solver_type");
74 const string str_solver_H_type = params_solver_H.
get_string(
"solver_type");
79 vout.
general(vl,
" gconf_status = %s\n", str_gconf_status.c_str());
80 vout.
general(vl,
" gconf_read = %s\n", str_gconf_read.c_str());
81 vout.
general(vl,
" readfile = %s\n", readfile.c_str());
82 vout.
general(vl,
" gconf_write = %s\n", str_gconf_write.c_str());
83 vout.
general(vl,
" writefile = %s\n", writefile.c_str());
84 vout.
general(vl,
" rand_type = %s\n", str_rand_type.c_str());
88 vout.
general(vl,
" i_save_conf = %d\n", i_save_conf);
89 vout.
general(vl,
" vlevel = %s\n", str_vlevel.c_str());
90 vout.
general(vl,
" gmset_type = %s\n", str_gmset_type.c_str());
91 vout.
general(vl,
" proj_type = %s\n", str_proj_type.c_str());
92 vout.
general(vl,
" smear_type = %s\n", str_smear_type.c_str());
93 vout.
general(vl,
" solver_MD_type = %s\n", str_solver_MD_type.c_str());
94 vout.
general(vl,
" solver_H_type = %s\n", str_solver_H_type.c_str());
116 if (str_gconf_status ==
"Continue") {
118 }
else if (str_gconf_status ==
"Cold_start") {
120 }
else if (str_gconf_status ==
"Hot_start") {
123 vout.
crucial(vl,
"Error at %s: unsupported gconf status \"%s\"\n",
test_name.c_str(), str_gconf_status.c_str());
176 actions.
append(0, action_F);
177 actions.
append(0, action_G);
179 std::vector<Director *> directors(1);
197 for (
int traj = 0; traj < Ntraj; ++traj) {
203 if ((i_conf + traj + 1) % i_save_conf == 0) {
227 int main(
int argc,
char *argv[])
Random number generator base on M-series.
void set_parameters(const Parameters ¶ms)
virtual void set_parameters(const Parameters ¶m)=0
int main(int argc, char *argv[])
void general(const char *format,...)
const std::string test_name
virtual void set_parameters(const Parameters &)=0
int get_int(const string &key) const
void bridge_setup(const Parameters ¶ms)
bool append(const int level, Action *action)
virtual void set_parameters(const Parameters ¶m)=0
virtual void set_parameters(const Parameters ¶ms)=0
Parameters lookup(const string &key) const
static bool initialize(const std::string &rng_type, unsigned long seed)
Manager of commonly used data object in HMC.
void read(Field_G *U, const string &filename=string())
unsigned long get_unsigned_long(const string &key) const
std::string generate_filename(const char *fmt,...)
virtual void set_parameters(const Parameters &)=0
HMC with single level leapfrog intetgrator.
int non_NULL(const std::string v)
Get quark propagator for Fopr with lexical site index.
void crucial(const char *format,...)
virtual void set_parameters(const Parameters ¶ms)=0
static void read(const std::string ¶ms_file, Parameters ¶ms)
Force for the standard Wilson fermion operator.
lists of actions at respective integrator levels.
Manager of smeared configurations.
void write_file(Field_G *U, const string &filename)
Force calculation for smeared fermion operators.
int leapfrog_Nf2(const Parameters ¶ms_all)
An example code for HMC.
int non_negative(const int v)
virtual void set_parameters(const Parameters &)=0
GaugeConfig class for file I/O of gauge configuration.
string get_string(const string &key) const
compilation of Bridge++ header files
void report(const Bridge::VerboseLevel vl=Bridge::GENERAL)
virtual void set_parameters(const Parameters &)=0
Standard fermion action for HMC.
static VerboseLevel set_verbose_level(const std::string &str)
int bridge_initialize(int *pargc, char ***pargv)