23 #ifdef USE_TESTMANAGER
39 int main(
int argc,
char *argv[])
44 #ifdef USE_TESTMANAGER
54 if (filename_input ==
"stdin") {
56 std::cin >> filename_input;
59 vout.
general(vl,
"input filename : %s\n", filename_input.c_str());
66 const std::vector<int> lattice_size = params_main.
get_int_vector(
"lattice_size");
67 const std::vector<int> grid_size = params_main.
get_int_vector(
"grid_size");
68 const int number_of_thread = params_main.
get_int(
"number_of_thread");
69 const int number_of_color = params_main.
get_int(
"number_of_color");
70 const std::string str_logfile = params_main.
get_string(
"log_filename");
71 const std::string str_ildg_logfile = params_main.
get_string(
"ildg_log_filename");
72 const std::string str_vlevel = params_main.
get_string(
"verbose_level");
79 if (str_logfile !=
"stdout") {
83 if (str_ildg_logfile !=
"stdout") {
100 vout.
general(vl,
" number of thread = %d\n", number_of_thread);
101 vout.
general(vl,
" number of color = %d\n", number_of_color);
102 vout.
general(vl,
" logfile = %s\n", str_logfile.c_str());
103 vout.
general(vl,
" ildg_logfile = %s\n", str_ildg_logfile.c_str());
104 vout.
general(vl,
" vlevel = %s\n", str_vlevel.c_str());
113 vout.
crucial(vl,
"Error at main: input parameters have not been set.\n");
123 #ifdef USE_TESTMANAGER
const std::string filename_main_input
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)
int get_int(const string &key) const
static void init_Vlevel(Bridge::VerboseLevel vlevel)
initialization for default verbose level.
static int finalize()
finalize communicator
static void init(int Nthread)
setup: called in main only once.
Parameters lookup(const string &key) const
int run_testmanager(int argc, char **argv)
int preprocess_testmanager(int argc, char **argv)
static void finalize()
finalization.
int non_NULL(const std::string v)
static int setup(int ninstance=1)
setup communicator
void crucial(const char *format,...)
static void read(const std::string ¶ms_file, Parameters ¶ms)
string get_string(const string &key) const
int main(int argc, char *argv[])
vector< int > get_int_vector(const string &key) const
void report(const Bridge::VerboseLevel vl=Bridge::GENERAL)
static VerboseLevel set_verbose_level(const std::string &str)
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)