16 #ifdef USE_PARAMETERS_FACTORY
31 #ifdef USE_PARAMETERS_FACTORY
46 const string str_vlevel = params.
get_string(
"verbose_level");
51 std::vector<int> source_position;
71 std::vector<int> Lsize(Ndim);
80 for (
int mu = 0; mu < Ndim; ++mu) {
82 mu, source_position[mu]);
87 for (
int mu = 0; mu < Ndim; ++mu) {
97 assert(source_position.size() == Ndim);
101 for (
int mu = 0; mu < Ndim; ++mu) {
113 std::vector<int> Nsz(Ndim);
122 assert(src.
nvol() == Nvol);
123 assert(src.
nex() == 1);
127 std::vector<int> site_src(4);
128 std::vector<int> node_src(4);
129 for (
int mu = 0; mu < Ndim; ++mu) {
139 site_src[2], site_src[3]);
140 src.
set_ri(ic,
id, site, 0, 1.0, 0.0);
void Register_int_vector(const string &, const std::vector< int > &)
Parameters_Source_4spinor_Local()
static const std::string class_name
void Register_string(const string &, const string &)
void set(const int jin, const int site, const int jex, double v)
int site(const int &x, const int &y, const int &z, const int &t) const
void general(const char *format,...)
static int ipe(const int dir)
logical coordinate of current proc.
void set(Field_F &src, int ic, int id)
Wilson-type fermion field.
void set_ri(const int cc, const int s, const int site, const int e, const double re, const double im)
Bridge::VerboseLevel m_vl
void crucial(const char *format,...)
static bool Register(const std::string &realm, const creator_callback &cb)
int non_negative(const int v)
string get_string(const string &key) const
std::vector< int > m_source_position
void set_parameters(const Parameters ¶ms)
static VerboseLevel set_verbose_level(const std::string &str)
int fetch_int_vector(const string &key, std::vector< int > &val) const