Go to the documentation of this file.
16 #ifdef USE_FACTORY_AUTOREGISTER
18 bool init = Source_Local::register_factory();
33 std::vector<int> source_position;
62 std::vector<int> Lsize(Ndim);
71 for (
int mu = 0; mu < Ndim; ++mu) {
73 mu, source_position[mu]);
78 for (
int mu = 0; mu < Ndim; ++mu) {
88 assert(source_position.size() == Ndim);
94 for (
int mu = 0; mu < Ndim; ++mu) {
104 std::vector<int> Nsize(Ndim);
112 for (
int i = 0; i < Ndim; ++i) {
123 for (
int i = 0; i < Ndim; ++i) {
127 for (
int i = 0; i < Ndim; ++i) {
147 src.
set(2 *
idx, isite, 0, 1.0);
156 const int idx = i_color + Nc * i_spin;
176 for (
int i_color = 0; i_color < Nc; ++i_color) {
177 int idx = i_color + Nc * i_spin;
181 src.
set(idx_r, isite, 0, 1.0);
202 for (
int idx = 0;
idx < Nc * Nd; ++
idx) {
206 src.
set(idx_r, isite, 0, 1.0);
void set_string(const string &key, const string &value)
void set_all_color_spin(Field &v)
void set(const int jin, const int site, const int jex, double v)
std::vector< int > m_source_position
int non_negative(const int v)
void get_parameters(Parameters ¶ms) const
int fetch_int_vector(const string &key, vector< int > &value) const
int idx(const int in, const int Nin, const int ist, const int Nx2, const int Ny, const int leo, const int Nvol2, const int ex)
int site(const int &x, const int &y, const int &z, const int &t) const
void set_int_vector(const string &key, const vector< int > &value)
void set_parameters(const Parameters ¶ms)
static VerboseLevel set_verbose_level(const std::string &str)
static int ipe(const int dir)
logical coordinate of current proc.
static const std::string class_name
int fetch_string(const string &key, string &value) const
void crucial(const char *format,...)
void set(Field &v, const int idx)
Container of Field-type object.
void set_all_color(Field &v, const int i_spin)
void general(const char *format,...)
Bridge::VerboseLevel m_vl
static std::string get_verbose_level(const VerboseLevel vl)