41 #if defined(USE_FACTORY) && !defined(USE_FACTORY_AUTOREGISTER)
42 bridge_init_factory();
45 #if defined(DEBUG) && defined(USE_FACTORY)
71 const std::vector<int>& lattice_size,
72 const std::vector<int>& grid_size,
73 const int number_of_threads,
74 const int number_of_colors,
75 const std::string& logfile,
76 const std::string& ildg_logfile,
77 const std::string& verbose_level
108 std::vector<int> lattice_size;
109 std::vector<int> grid_size = std::vector<int>();
110 int number_of_threads = 0;
111 int number_of_colors = Nc;
112 std::string logfile =
"stdout";
113 std::string ildg_logfile =
"stdout";
114 std::string verbose_level =
"General";
120 ret += params.
fetch_int(
"number_of_thread", number_of_threads);
121 ret += params.
fetch_int(
"number_of_color", number_of_colors);
123 ret += params.
fetch_string(
"ildg_log_filename", ildg_logfile);
124 ret += params.
fetch_string(
"verbose_level", verbose_level);
138 const std::vector<int>& lattice_size,
139 const std::vector<int>& grid_size_hint,
140 const int number_of_threads,
141 const int number_of_colors,
142 const std::string& logfile,
143 const std::string& ildg_logfile,
144 const std::string& verbose_level
151 vout.
general(
" number of thread = %d\n", number_of_threads);
152 vout.
general(
" number of color = %d\n", number_of_colors);
154 vout.
general(
" ildg_logfile = %s\n", ildg_logfile.c_str());
155 vout.
general(
" vlevel = %s\n", verbose_level.c_str());
161 std::vector<int> grid_size(grid_size_hint);
175 if ((logfile.size() > 0) && (logfile !=
"stdout")) {
179 if ((ildg_logfile.size() > 0) && (ildg_logfile !=
"stdout")) {
static int init(int *pargc, char ***pargv)
initialize communicator
void general(const char *format,...)
void ildg_init(const std::ostream &os)
void init(const std::string &filename)
void bridge_setup(const Parameters ¶ms)
static void init_Vlevel(Bridge::VerboseLevel vlevel)
initialization for default verbose level.
int fetch_string(const string &key, string &value) const
static int finalize()
finalize communicator
static void init(int Nthread)
setup: called in main only once.
int fetch_int(const string &key, int &value) const
static void finalize()
finalization.
static int setup(int ninstance=1)
setup communicator
int fetch_int_vector(const string &key, vector< int > &value) const
static VerboseLevel set_verbose_level(const std::string &str)
int bridge_initialize(int *pargc, char ***pargv)
static void init(const std::vector< int > &lattice_size, const std::vector< int > &grid_size)
initialization (Nc=3 is assumed).
static string to_string(const vector< T > &v)