58 const std::vector<int>& grid_size)
60 init(lattice_size, grid_size, 3);
66 const std::vector<int>& grid_size,
76 m_Lx = lattice_size[0];
77 m_Ly = lattice_size[1];
78 m_Lz = lattice_size[2];
79 m_Lt = lattice_size[3];
122 vout.
crucial(
"Error at %s: invalid argument value.\n",
148 vout.
crucial(
"Error at %s: invalid argument value.\n",
174 vout.
crucial(
"Error at %s: invalid argument value.\n",
185 if (
m_Ndim == 0)
return false;
187 if (
m_Nc == 0)
return false;
189 if (
m_Nd == 0)
return false;
191 if (
m_Lx == 0)
return false;
193 if (
m_Ly == 0)
return false;
195 if (
m_Lz == 0)
return false;
197 if (
m_Lt == 0)
return false;
216 if ((
m_Nx == 0) && (m_NPEx != 0)) {
219 if ((
m_Ny == 0) && (m_NPEy != 0)) {
222 if ((
m_Nz == 0) && (m_NPEz != 0)) {
225 if ((
m_Nt == 0) && (m_NPEt != 0)) {
226 if (m_Lt % m_NPEt != 0)
return false;
else m_Nt = m_Lt /
m_NPEt;
229 if ((
m_Nx != 0) && (m_NPEx == 0)) {
232 if ((
m_Ny != 0) && (m_NPEy == 0)) {
235 if ((
m_Nz != 0) && (m_NPEz == 0)) {
238 if ((
m_Nt != 0) && (m_NPEt == 0)) {
239 if (m_Lt %
m_Nt != 0)
return false;
else m_NPEt = m_Lt /
m_Nt;
242 if ((m_NPEx != 0) && (m_NPEy != 0) && (m_NPEz != 0) && (m_NPEt != 0)) {
243 if ((
m_NPE != 0) && (
m_NPE != m_NPEx * m_NPEy * m_NPEz * m_NPEt))
return false;
263 vout.
general(
" Lx = %4d, Ly = %4d, Lz = %4d, Lt = %4d,\n",
265 vout.
general(
" Nx = %4d, Ny = %4d, Nz = %4d, Nt = %4d,\n",
267 vout.
general(
" NPEx =%4d, NPEy =%4d, NPEz =%4d, NPEt =%4d,\n",
269 vout.
general(
" Lvol = %8d, Nvol = %6d, NPE = %6d,\n",
void general(const char *format,...)
static const std::string class_name
static char m_map_grid[16]
static void print_parameters()
static void init_Vlevel(Bridge::VerboseLevel vlevel)
initialization for default verbose level.
static Bridge::VerboseLevel m_vlevel
void crucial(const char *format,...)
static bool check_parameters()
static int NPEsize(const int dir)
static int Nsize(const int dir)
static bool m_initialized
static const double m_epsilon_criterion
static void init(const std::vector< int > &lattice_size, const std::vector< int > &grid_size)
initialization (Nc=3 is assumed).
static int Lsize(const int dir)