Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CommonParameters Class Reference

Common parameter class: provides parameters as singleton. More...

#include <commonParameters.h>

Static Public Member Functions

static void init (const std::vector< int > &lattice_size, const std::vector< int > &grid_size)
 initialization (Nc=3 is assumed). More...
 
static void init (const std::vector< int > &lattice_size, const std::vector< int > &grid_size, const int Nc)
 initialization with a given value of Nc. More...
 
static void init_Vlevel (Bridge::VerboseLevel vlevel)
 initialization for default verbose level. More...
 
static void print_parameters ()
 
static int Lx ()
 
static int Ly ()
 
static int Lz ()
 
static int Lt ()
 
static long_t Lvol ()
 
static int NPEx ()
 
static int NPEy ()
 
static int NPEz ()
 
static int NPEt ()
 
static int NPE ()
 
static char * Grid_map ()
 
static int Nx ()
 
static int Ny ()
 
static int Nz ()
 
static int Nt ()
 
static int Nvol ()
 
static int Lsize (const int dir)
 
static int Nsize (const int dir)
 
static int NPEsize (const int dir)
 
static int Nc ()
 
static int Nd ()
 
static int Ndim ()
 
static double epsilon_criterion ()
 
static double epsilon_criterion2 ()
 
static Bridge::VerboseLevel Vlevel ()
 

Static Public Attributes

static const std::string class_name = "CommonParameters"
 

Private Member Functions

 CommonParameters ()
 
 CommonParameters (const CommonParameters &)
 
CommonParametersoperator= (const CommonParameters &)
 

Static Private Member Functions

static bool check_parameters ()
 

Static Private Attributes

static int m_Nc = 3
 
static const int m_Nd = 4
 
static const int m_Ndim = 4
 
static const double m_epsilon_criterion = 1.0e-16
 
static int m_Lx = 0
 
static int m_Ly = 0
 
static int m_Lz = 0
 
static int m_Lt = 0
 
static long_t m_Lvol = 0
 
static int m_NPEx = 0
 
static int m_NPEy = 0
 
static int m_NPEz = 0
 
static int m_NPEt = 0
 
static int m_NPE = 0
 
static char m_map_grid [16] = "xyzt"
 
static int m_Nx = 0
 
static int m_Ny = 0
 
static int m_Nz = 0
 
static int m_Nt = 0
 
static int m_Nvol = 0
 
static bool m_initialized = false
 
static Bridge::VerboseLevel m_vlevel = Bridge::GENERAL
 

Detailed Description

Common parameter class: provides parameters as singleton.

At present stage, several sets of parameters are explicitly given in the implementation file corresponding to some strings, for convenience of test. 28 Dec 2011 H.Matsufuru epsilon_criterion is implemented. [14 Nov 2012 Y.Namekawa] General value of Nc become available. [07 May 2014 H.Matsufuru]

Definition at line 42 of file commonParameters.h.

Constructor & Destructor Documentation

CommonParameters::CommonParameters ( )
inlineprivate

Definition at line 67 of file commonParameters.h.

CommonParameters::CommonParameters ( const CommonParameters )
inlineprivate

Definition at line 68 of file commonParameters.h.

Member Function Documentation

bool CommonParameters::check_parameters ( )
staticprivate

Definition at line 185 of file commonParameters.cpp.

static double CommonParameters::epsilon_criterion ( )
inlinestatic

Definition at line 119 of file commonParameters.h.

static double CommonParameters::epsilon_criterion2 ( )
inlinestatic

Definition at line 120 of file commonParameters.h.

static char* CommonParameters::Grid_map ( )
inlinestatic

Definition at line 103 of file commonParameters.h.

void CommonParameters::init ( const std::vector< int > &  lattice_size,
const std::vector< int > &  grid_size 
)
static

initialization (Nc=3 is assumed).

Definition at line 59 of file commonParameters.cpp.

void CommonParameters::init ( const std::vector< int > &  lattice_size,
const std::vector< int > &  grid_size,
const int  Nc 
)
static

initialization with a given value of Nc.

Definition at line 67 of file commonParameters.cpp.

void CommonParameters::init_Vlevel ( Bridge::VerboseLevel  vlevel)
static

initialization for default verbose level.

Definition at line 100 of file commonParameters.cpp.

int CommonParameters::Lsize ( const int  dir)
static

Definition at line 107 of file commonParameters.cpp.

static int CommonParameters::Lt ( )
inlinestatic

Definition at line 94 of file commonParameters.h.

static long_t CommonParameters::Lvol ( )
inlinestatic

Definition at line 95 of file commonParameters.h.

static int CommonParameters::Lx ( )
inlinestatic

Definition at line 91 of file commonParameters.h.

static int CommonParameters::Ly ( )
inlinestatic

Definition at line 92 of file commonParameters.h.

static int CommonParameters::Lz ( )
inlinestatic

Definition at line 93 of file commonParameters.h.

static int CommonParameters::Nc ( )
inlinestatic

Definition at line 115 of file commonParameters.h.

static int CommonParameters::Nd ( )
inlinestatic

Definition at line 116 of file commonParameters.h.

static int CommonParameters::Ndim ( )
inlinestatic

Definition at line 117 of file commonParameters.h.

static int CommonParameters::NPE ( )
inlinestatic

Definition at line 101 of file commonParameters.h.

int CommonParameters::NPEsize ( const int  dir)
static

Definition at line 159 of file commonParameters.cpp.

static int CommonParameters::NPEt ( )
inlinestatic

Definition at line 100 of file commonParameters.h.

static int CommonParameters::NPEx ( )
inlinestatic

Definition at line 97 of file commonParameters.h.

static int CommonParameters::NPEy ( )
inlinestatic

Definition at line 98 of file commonParameters.h.

static int CommonParameters::NPEz ( )
inlinestatic

Definition at line 99 of file commonParameters.h.

int CommonParameters::Nsize ( const int  dir)
static

Definition at line 133 of file commonParameters.cpp.

static int CommonParameters::Nt ( )
inlinestatic

Definition at line 108 of file commonParameters.h.

static int CommonParameters::Nvol ( )
inlinestatic

Definition at line 109 of file commonParameters.h.

static int CommonParameters::Nx ( )
inlinestatic

Definition at line 105 of file commonParameters.h.

static int CommonParameters::Ny ( )
inlinestatic

Definition at line 106 of file commonParameters.h.

static int CommonParameters::Nz ( )
inlinestatic

Definition at line 107 of file commonParameters.h.

CommonParameters& CommonParameters::operator= ( const CommonParameters )
private
void CommonParameters::print_parameters ( )
static

Definition at line 261 of file commonParameters.cpp.

static Bridge::VerboseLevel CommonParameters::Vlevel ( )
inlinestatic

Definition at line 122 of file commonParameters.h.

Member Data Documentation

const std::string CommonParameters::class_name = "CommonParameters"
static

Definition at line 44 of file commonParameters.h.

const double CommonParameters::m_epsilon_criterion = 1.0e-16
staticprivate

Definition at line 52 of file commonParameters.h.

bool CommonParameters::m_initialized = false
staticprivate

Definition at line 65 of file commonParameters.h.

int CommonParameters::m_Lt = 0
staticprivate

Definition at line 55 of file commonParameters.h.

long_t CommonParameters::m_Lvol = 0
staticprivate

Definition at line 56 of file commonParameters.h.

int CommonParameters::m_Lx = 0
staticprivate

Definition at line 55 of file commonParameters.h.

int CommonParameters::m_Ly = 0
staticprivate

Definition at line 55 of file commonParameters.h.

int CommonParameters::m_Lz = 0
staticprivate

Definition at line 55 of file commonParameters.h.

char CommonParameters::m_map_grid = "xyzt"
staticprivate

Definition at line 60 of file commonParameters.h.

int CommonParameters::m_Nc = 3
staticprivate

Definition at line 48 of file commonParameters.h.

const int CommonParameters::m_Nd = 4
staticprivate

Definition at line 49 of file commonParameters.h.

const int CommonParameters::m_Ndim = 4
staticprivate

Definition at line 50 of file commonParameters.h.

int CommonParameters::m_NPE = 0
staticprivate

Definition at line 59 of file commonParameters.h.

int CommonParameters::m_NPEt = 0
staticprivate

Definition at line 59 of file commonParameters.h.

int CommonParameters::m_NPEx = 0
staticprivate

Definition at line 59 of file commonParameters.h.

int CommonParameters::m_NPEy = 0
staticprivate

Definition at line 59 of file commonParameters.h.

int CommonParameters::m_NPEz = 0
staticprivate

Definition at line 59 of file commonParameters.h.

int CommonParameters::m_Nt = 0
staticprivate

Definition at line 63 of file commonParameters.h.

int CommonParameters::m_Nvol = 0
staticprivate

Definition at line 63 of file commonParameters.h.

int CommonParameters::m_Nx = 0
staticprivate

Definition at line 63 of file commonParameters.h.

int CommonParameters::m_Ny = 0
staticprivate

Definition at line 63 of file commonParameters.h.

int CommonParameters::m_Nz = 0
staticprivate

Definition at line 63 of file commonParameters.h.

Bridge::VerboseLevel CommonParameters::m_vlevel = Bridge::GENERAL
staticprivate

Definition at line 74 of file commonParameters.h.


The documentation for this class was generated from the following files: