25 bool init = Action::Factory::Register(
"Action_G_Plaq", create_object);
40 #ifdef USE_PARAMETERS_FACTORY
55 const string str_vlevel = params.
get_string(
"verbose_level");
92 int NinG = 2 * Nc * Nc;
111 int Ndim2 = Ndim * (Ndim - 1) / 2;
112 int size_U = Lvol * Ndim2;
115 double H_U =
m_beta * (1.0 - plaq) * Lvol * Ndim2;
133 assert(force.
nin() == Nin);
134 assert(force.
nvol() == Nvol);
135 assert(force.
nex() == Nex);
139 double betaNc =
m_beta / Nc;
147 for (
int mu = 0; mu < Nex; ++mu) {
156 for (
int site = 0; site < Nvol; ++site) {
163 axpy(force, mu, -betaNc, force1, 0);
166 double Fave, Fmax, Fdev;
167 force.
stat(Fave, Fmax, Fdev);
170 vout.
general(
m_vl,
" Fplaq_ave = %12.6f Fplaq_max = %12.6f Fplaq_dev = %12.6f\n",
double langevin(RandomNumbers *)
Langevis step.
void Register_string(const string &, const string &)
void set(const int jin, const int site, const int jex, double v)
void set_parameters(const Parameters ¶ms)
void general(const char *format,...)
Container of Field-type object.
double plaquette(const Field_G &)
calculates plaquette value.
Mat_SU_N & at()
antihermitian traceless
Base class of HMC action class family.
Parameters_Action_G_Plaq()
void axpy(Field &y, const double a, const Field &x)
axpy(y, a, x): y := a * x + y
void crucial(const char *format,...)
static bool Register(const std::string &realm, const creator_callback &cb)
Bridge::VerboseLevel m_vl
Base class of random number generators.
void stat(double &Fave, double &Fmax, double &Fdev) const
determines the statistics of the field. average, maximum value, and deviation is determined over glob...
Mat_SU_N mat_dag(const int site, const int mn=0) const
void Register_double(const string &, const double)
void staple(Field_G &, const Field_G &, const int mu)
constructs staples in mu-direction (summing up nu-direction).
int fetch_double(const string &key, double &val) const
string get_string(const string &key) const
void set_mat(const int site, const int mn, const Mat_SU_N &U)
Mat_SU_N mat(const int site, const int mn=0) const
double calcH()
calculate Hamiltonian of this action term.
static const std::string class_name
static VerboseLevel set_verbose_level(const std::string &str)
void force(Field &)
returns force for molcular dynamical update of conjugate momenta.