Go to the documentation of this file.
41 vout.
crucial(
"Error at %s: unsupported gamma-matrix type: %s\n",
202 std::vector<double> phi, phipr;
225 const std::vector<int> bc,
226 const std::vector<double> phi,
227 const std::vector<double> phipr)
241 const std::vector<int> bc,
242 const std::vector<double> phi,
243 const std::vector<double> phipr)
247 assert(bc.size() ==
m_Ndim);
257 for (
int i = 0; i < 3; ++i) {
264 double Lx_inv = 1.0 / double(Lx);
265 double c0r = cos(phi[0] * Lx_inv);
266 double c0i = sin(phi[0] * Lx_inv);
267 double c1r = cos(phi[1] * Lx_inv);
268 double c1i = sin(phi[1] * Lx_inv);
269 double c2r = cos(phi[2] * Lx_inv);
270 double c2i = sin(phi[2] * Lx_inv);
276 c0r = cos(phipr[0] * Lx_inv);
277 c0i = sin(phipr[0] * Lx_inv);
278 c1r = cos(phipr[1] * Lx_inv);
279 c1i = sin(phipr[1] * Lx_inv);
280 c2r = cos(phipr[2] * Lx_inv);
281 c2i = sin(phipr[2] * Lx_inv);
293 for (
int mu = 0; mu <
m_Ndim; ++mu) {
408 for (
int mu = 0; mu < Ndim; ++mu) {
409 for (
int nu = 0; nu < Ndim; ++nu) {
410 if (nu == mu)
continue;
502 for (
int mu = 0; mu <
m_Ndim; ++mu) {
503 for (
int nu = 0; nu <
m_Ndim; ++nu) {
504 if (nu == mu)
continue;
529 int ith, nth, is, ns;
530 set_threadtask(ith, nth, is, ns, Svol);
533 for (
int site = is; site < ns; ++site) {
534 for (
int s = 0; s < Nd; ++s) {
535 for (
int cc = 0; cc < Nc2; ++cc) {
536 f.
set(cc + Nc2 * s, site, 0, 0.0);
void set_parameters(const Parameters ¶ms)
sets parameters by a Parameter object: to be implemented in a subclass.
void set_boundary_wkpr(Field_G &u, const Mat_SU_N &wkpr)
void force_udiv(Field &force, const Field &eta)
For recursive calculation of smeared force.
double m_cSW
clover coefficient
void set_string(const string &key, const string &value)
void set_parameters(const Parameters ¶ms)
void forward(Field &, const Field &, const int mu)
void force_udiv1(Field &force, const Field &zeta, const Field &eta)
For recursive calculation of smeared force.
void set_config(Field *U)
Setting gauge configuration.
void set(const int jin, const int site, const int jex, double v)
void set_double(const string &key, const double value)
std::string m_repr
gamma matrix representation
void set_boundary_wk(Field_G &u, const Mat_SU_N &wk)
void mult_isigma(Field_F &, const Field_F &, const int mu, const int nu)
void axpy(Field &y, const double a, const Field &x)
axpy(y, a, x): y := a * x + y
void set_config(Field *U)
setup configuration (Note that this method is not multi-threaded).
void mult_Field_Gd(Field_F &y, const int ex, const Field_G &u, int ex1, const Field_F &x, int ex2)
void set_double_vector(const string &key, const vector< double > &value)
int index_dir(const int mu, const int nu)
Mat_SU_N m_wkpr
SF boundary condition at t=Nt.
void upper(Field_G &, const Field_G &, const int, const int)
void copy(Field &y, const Field &x)
copy(y, x): y = x
void tensorProd_Field_F(Field_G &u, const Field_F &v1, const Field_F &v2)
Fopr_Clover_SF * m_fopr_c
void set(int c, const double &re, const double &im)
void force_udiv1(Field &force, const Field &zeta, const Field &eta)
void set_config(Field *U)
sets verbose level.
void mult_gm5(Field &v, const Field &w)
multiplies gamma_5 matrix.
void set_parameters(const Parameters ¶ms)
sets parameters by a Parameter object: to be implemented in a subclass.
int fetch_int_vector(const string &key, vector< int > &value) const
void set_mode(const std::string mode)
setting the mode of multiplication if necessary. Default implementation here is just to avoid irrelev...
static const std::string class_name
void mult(Field &v, const Field &f)
multiplies fermion operator to a given field.
void set_int_vector(const string &key, const vector< int > &value)
Field_G * m_Cud
for force calculation
Methods to shift a field in the lexical site index.
void set_parameters(const Parameters ¶ms)
sets parameters by a Parameter object: to be implemented in a subclass.
void set_boundary_spatial_link_zero(Field_G &u)
double m_kappa
hopping parameter
void set_boundary_zero(Field_F &f)
static Bridge::VerboseLevel Vlevel()
void lower(Field_G &, const Field_G &, const int, const int)
Field_G * m_U
Gauge configuration.
static VerboseLevel set_verbose_level(const std::string &str)
void backward(Field &, const Field &, const int mu)
void mult_Field_Gn(Field_F &y, const int ex, const Field_G &u, int ex1, const Field_F &x, int ex2)
void mult_Field_Gdd(Field_G &W, const int ex, const Field_G &U1, const int ex1, const Field_G &U2, const int ex2)
static int ipe(const int dir)
logical coordinate of current proc.
int fetch_string(const string &key, string &value) const
Wilson-type fermion field.
int fetch_double(const string &key, double &value) const
Force_F_Wilson_SF * m_force_w
void crucial(const char *format,...)
void get_parameters(Parameters ¶ms) const
Mat_SU_N m_wk
SF boundary condition at t=0.
std::vector< double > m_phi
SF boundary condition at t=0.
Container of Field-type object.
void force_udiv1_impl(Field_G &force, const Field_F &zeta, const Field_F &eta)
Core implemetation of clover force calculation.
static int get_thread_id()
returns thread id.
void set_component()
Set building components for force calculation.
int fetch_double_vector(const string &key, vector< double > &value) const
std::vector< double > m_phipr
SF boundary condition at t=Nt.
void general(const char *format,...)
std::vector< int > m_boundary
boundary conditions
Force for the Wilson quark action with SF BC.
static void assert_single_thread(const std::string &class_name)
assert currently running on single thread.
static std::string get_verbose_level(const VerboseLevel vl)
void set_parameters_impl(const Parameters ¶ms)
Bridge::VerboseLevel m_vl
verbose level