60 const std::vector<int>& grid_size)
62 init(lattice_size, grid_size, 3);
68 const std::vector<int>& grid_size,
78 m_Lx = lattice_size[0];
79 m_Ly = lattice_size[1];
80 m_Lz = lattice_size[2];
81 m_Lt = lattice_size[3];
124 vout.
crucial(
"Error at %s: invalid argument value.\n",
150 vout.
crucial(
"Error at %s: invalid argument value.\n",
176 vout.
crucial(
"Error at %s: invalid argument value.\n",
187 if (
m_Ndim == 0)
return false;
189 if (
m_Nc == 0)
return false;
191 if (
m_Nd == 0)
return false;
193 if (
m_Lx == 0)
return false;
195 if (
m_Ly == 0)
return false;
197 if (
m_Lz == 0)
return false;
199 if (
m_Lt == 0)
return false;
218 if ((
m_Nx == 0) && (m_NPEx != 0)) {
221 if ((
m_Ny == 0) && (m_NPEy != 0)) {
224 if ((
m_Nz == 0) && (m_NPEz != 0)) {
227 if ((
m_Nt == 0) && (m_NPEt != 0)) {
228 if (m_Lt % m_NPEt != 0)
return false;
else m_Nt = m_Lt /
m_NPEt;
231 if ((
m_Nx != 0) && (m_NPEx == 0)) {
234 if ((
m_Ny != 0) && (m_NPEy == 0)) {
237 if ((
m_Nz != 0) && (m_NPEz == 0)) {
240 if ((
m_Nt != 0) && (m_NPEt == 0)) {
241 if (m_Lt %
m_Nt != 0)
return false;
else m_NPEt = m_Lt /
m_Nt;
244 if ((m_NPEx != 0) && (m_NPEy != 0) && (m_NPEz != 0) && (m_NPEt != 0)) {
245 if ((
m_NPE != 0) && (
m_NPE != m_NPEx * m_NPEy * m_NPEz * m_NPEt))
return false;
265 vout.
general(
" Lx = %d, Ly = %d, Lz = %d, Lt = %d,\n",
267 vout.
general(
" Nx = %d, Ny = %d, Nz = %d, Nt = %d,\n",
269 vout.
general(
" NPEx = %d, NPEy = %d, NPEz = %d, NPEt = %d,\n",
271 vout.
general(
" Lvol = %ld, Nvol = %d, NPE = %d,\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
long long_t
definition of long for Bridge++
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)