49 namespace Test_SF_fAfP {
 
   50   const std::string 
test_name = 
"SF_fAfP.Boundary_Meson_2ptFunction";
 
   54     const std::string filename_input = 
"test_SF_fAfP_Boundary_Meson_2ptFunction.yaml";
 
   60 #ifdef USE_TESTMANAGER_AUTOREGISTER 
   62 #if defined(USE_OPENMP) || defined(USE_GROUP_SU2) 
   92     const string        str_gconf_status = params_test.
get_string(
"gauge_config_status");
 
   93     const string        str_gconf_read   = params_test.
get_string(
"gauge_config_type_input");
 
   94     const string        readfile         = params_test.
get_string(
"config_filename_input");
 
   95     const string        str_rand_type    = params_test.
get_string(
"random_number_type");
 
   96     const unsigned long seed             = params_test.
get_unsigned_long(
"seed_for_random_number");
 
   97     const string        str_vlevel       = params_test.
get_string(
"verbose_level");
 
   99     const bool   do_check        = params_test.
is_set(
"expected_result");
 
  100     const double expected_result = do_check ? params_test.
get_double(
"expected_result") : 0.0;
 
  102     const string str_gmset_type  = params_clover.
get_string(
"gamma_matrix_type");
 
  103     const string str_proj_type   = params_proj.
get_string(
"projection_type");
 
  104     const string str_smear_type  = params_smear.
get_string(
"smear_type");
 
  105     const string str_solver_type = params_solver.
get_string(
"solver_type");
 
  110     vout.
general(vl, 
"  gconf_status = %s\n", str_gconf_status.c_str());
 
  111     vout.
general(vl, 
"  gconf_read   = %s\n", str_gconf_read.c_str());
 
  112     vout.
general(vl, 
"  readfile     = %s\n", readfile.c_str());
 
  113     vout.
general(vl, 
"  rand_type    = %s\n", str_rand_type.c_str());
 
  115     vout.
general(vl, 
"  vlevel       = %s\n", str_vlevel.c_str());
 
  116     vout.
general(vl, 
"  gmset_type   = %s\n", str_gmset_type.c_str());
 
  117     vout.
general(vl, 
"  proj_type    = %s\n", str_proj_type.c_str());
 
  118     vout.
general(vl, 
"  smear_type   = %s\n", str_smear_type.c_str());
 
  119     vout.
general(vl, 
"  solver_type  = %s\n", str_solver_type.c_str());
 
  138     if (str_gconf_status == 
"Continue") {
 
  140     } 
else if (str_gconf_status == 
"Cold_start") {
 
  142     } 
else if (str_gconf_status == 
"Hot_start") {
 
  145       vout.
crucial(vl, 
"Error at %s: unsupported gconf status \"%s\"\n", 
test_name.c_str(), str_gconf_status.c_str());
 
  194     std::vector<Field_F> H(Nc * Nd);
 
  195     std::vector<Field_F> Hpr(Nc * Nd);
 
  203     vout.
general(vl, 
"  color spin   Nconv      diff           diff2\n");
 
  205     for (
int icolor = 0; icolor < Nc; ++icolor) {
 
  206       for (
int ispin = 0; ispin < Nd / 2; ++ispin) {
 
  207         source->
set_t0(b, icolor, ispin);
 
  209         int idx = icolor + Nc * ispin;
 
  210         fprop_lex->
invert_D(xq, b, Nconv, diff);
 
  215         fopr_smear->
mult(y, xq);  
 
  220                      icolor, ispin, Nconv, diff, diff2);
 
  227       for (
int ispin = Nd / 2; ispin < Nd; ++ispin) {
 
  228         source->
set_tT(b, icolor, ispin);
 
  230         int idx = icolor + Nc * ispin;
 
  231         fprop_lex->
invert_D(xq, b, Nconv, diff);
 
  236         fopr_smear->
mult(y, xq);  
 
  241                      icolor, ispin, Nconv, diff, diff2);
 
  251     for (
int t = 0; t < 2; ++t) {
 
  252       int site = index.
site(0, 0, 0, t);
 
  253       for (
int c1 = 0; c1 < Nc; ++c1) {
 
  254         for (
int c0 = 0; c0 < Nc; ++c0) {
 
  255           for (
int s1 = 0; s1 < Nd; ++s1) {
 
  256             for (
int s0 = 0; s0 < Nd; ++s0) {
 
  259                            H[c0 + Nc * s0].cmp_r(c1, s1, site),
 
  260                            H[c0 + Nc * s0].cmp_i(c1, s1, site));
 
  266     for (
int t = 0; t < 2; ++t) {
 
  267       int site = index.
site(0, 0, 0, t);
 
  268       for (
int c1 = 0; c1 < Nc; ++c1) {
 
  269         for (
int c0 = 0; c0 < Nc; ++c0) {
 
  270           for (
int s1 = 0; s1 < Nd; ++s1) {
 
  271             for (
int s0 = 0; s0 < Nd; ++s0) {
 
  274                            Hpr[c0 + Nc * s0].cmp_r(c1, s1, site),
 
  275                            Hpr[c0 + Nc * s0].cmp_i(c1, s1, site));
 
  285     vout.
general(vl, 
"boundary 2-point correlator with SF BC:\n");
 
  288     double            result = corr.
fAfP(H, Hpr);
 
  298       vout.
detailed(vl, 
"check skipped: expected_result not set.\n\n");
 
const std::string test_name
 
void set_config(Field *U)
setting pointer to configuration 
 
void detailed(const char *format,...)
 
void set(const int jin, const int site, const int jex, double v)
 
virtual void set_parameters(const Parameters ¶m)=0
 
int site(const int &x, const int &y, const int &z, const int &t) const 
 
Wall source for SF boundary propagator. 
 
void general(const char *format,...)
 
virtual void set_config(Field *)=0
setting pointer to the gauge configuration. 
 
Two-point correlator for Wilson-type fermions with SF BC. 
 
virtual void set_parameters(const Parameters &)=0
 
int boundary_meson_2ptFunction(void)
 
void set_tT(Field_F &src, int ic, int id)
Set the 3D wall source at t=T-1. 
 
Wilson-type fermion field. 
 
virtual void set_parameters(const Parameters ¶ms)=0
 
Parameters lookup(const string &key) const 
 
static bool RegisterTest(const std::string &key, const Test_function func)
 
virtual void invert_D(Field &, const Field &, int &, double &)=0
 
static bool initialize(const std::string &rng_type, unsigned long seed)
 
Field * getptr_smearedConfig(int i_smear)
get pointer to i-th smeared config (0th is original thin link) 
 
void read(Field_G *U, const string &filename=string())
 
double fAfP(const std::vector< Field_F > &sq1, const std::vector< Field_F > &sq2)
 
unsigned long get_unsigned_long(const string &key) const 
 
void set_t0(Field_F &src, int ic, int id)
Set the 3D wall source at t=1. 
 
double get_double(const string &key) const 
 
void set_parameters(const Parameters ¶ms)
 
virtual void set_parameters(const Parameters &)=0
 
int non_NULL(const std::string v)
 
bool is_set(const string &key) const 
 
void axpy(Field &y, const double a, const Field &x)
axpy(y, a, x): y := a * x + y 
 
Get quark propagator for Fopr with lexical site index. 
 
void set_config(Field *U)
set pointer to original thin link variable 
 
int get_Nsmear()
get number of applied smearing operation 
 
void crucial(const char *format,...)
 
virtual void set_parameters(const Parameters ¶ms)=0
 
static void read(const std::string ¶ms_file, Parameters ¶ms)
 
Manager of smeared configurations. 
 
int verify(const double result, const double expected, double eps)
 
virtual void mult(Field &, const Field &)=0
multiplies fermion operator to a given field (2nd argument) 
 
void set_parameters(const Parameters ¶ms)
set parameters, must be called before set_config 
 
virtual void set_mode(std::string mode)
setting the mode of multiplication if necessary. Default implementation here is just to avoid irrelev...
 
GaugeConfig class for file I/O of gauge configuration. 
 
string get_string(const string &key) const 
 
virtual void set_config(Field *U)=0
 
void report(const Bridge::VerboseLevel vl=Bridge::GENERAL)
 
static VerboseLevel set_verbose_level(const std::string &str)