16 #ifdef USE_PARAMETERS_FACTORY
30 bool init = Source::Factory::Register(
"Wall", create_object);
44 #ifdef USE_PARAMETERS_FACTORY
59 const string str_vlevel = params.
get_string(
"verbose_level");
64 valarray<int> source_position;
86 valarray<int> Lsize(Ndim);
93 valarray<int> Nsize(Ndim);
99 const int t_dir = Ndim - 1;
103 vout.
general(
m_vl,
" source_position[t] = %d\n", source_position[t_dir]);
117 for (
int mu = 0; mu < Ndim; ++mu) {
120 m_source_position[t_dir] = (source_position[t_dir] + Lsize[t_dir]) % Lsize[t_dir];
146 const int Lvol3 = Lx * Ly * Lz;
149 valarray<int> Nsize(Ndim);
161 for (
int z = 0; z < Nsize[2]; ++z) {
162 for (
int y = 0; y < Nsize[1]; ++y) {
163 for (
int x = 0; x < Nsize[0]; ++x) {
167 src.
set(2 * j, isite, 0, 1.0 / Lvol3);
std::valarray< int > m_source_position
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,...)
void set(Field &v, int j)
static const std::string class_name
Container of Field-type object.
static int ipe(const int dir)
logical coordinate of current proc.
int fetch_int_vector(const string &key, std::valarray< int > &val) const
void set_parameters(const Parameters ¶ms)
void crucial(const char *format,...)
static bool Register(const std::string &realm, const creator_callback &cb)
Bridge::VerboseLevel m_vl
int non_negative(const int v)
void Register_int_vector(const string &, const std::valarray< int > &)
Base class of sources for a linear solver.
string get_string(const string &key) const
Wall source for 4-spinor fermion.
static VerboseLevel set_verbose_level(const std::string &str)