16 #ifdef USE_FACTORY_AUTOREGISTER
18 bool init = Source_Local::register_factory();
27 const string str_vlevel = params.
get_string(
"verbose_level");
32 std::vector<int> source_position;
52 std::vector<int> Lsize(Ndim);
61 for (
int mu = 0; mu < Ndim; ++mu) {
63 mu, source_position[mu]);
68 for (
int mu = 0; mu < Ndim; ++mu) {
78 assert(source_position.size() == Ndim);
84 for (
int mu = 0; mu < Ndim; ++mu) {
94 std::vector<int> Nsize(Ndim);
102 for (
int i = 0; i < Ndim; ++i) {
113 for (
int i = 0; i < Ndim; ++i) {
117 for (
int i = 0; i < Ndim; ++i) {
137 src.
set(2 * idx, isite, 0, 1.0);
146 const int idx = i_color + Nc * i_spin;
166 for (
int i_color = 0; i_color < Nc; ++i_color) {
167 int idx = i_color + Nc * i_spin;
171 src.
set(idx_r, isite, 0, 1.0);
192 for (
int idx = 0; idx < Nc * Nd; ++idx) {
196 src.
set(idx_r, isite, 0, 1.0);
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
static const std::string class_name
void set_all_color_spin(Field &v)
void general(const char *format,...)
Container of Field-type object.
static int ipe(const int dir)
logical coordinate of current proc.
void set_parameters(const Parameters ¶ms)
void set_all_color(Field &v, const int i_spin)
void crucial(const char *format,...)
void set(Field &v, const int idx)
Bridge::VerboseLevel m_vl
int non_negative(const int v)
string get_string(const string &key) const
int fetch_int_vector(const string &key, vector< int > &value) const
std::vector< int > m_source_position
static VerboseLevel set_verbose_level(const std::string &str)