29 namespace Test_HotStart {
30 const std::string
test_name =
"HotStart.Unitary";
34 const std::string filename_input =
"test_HotStart_Unitary.yaml";
40 #ifdef USE_TESTMANAGER_AUTOREGISTER
42 #if defined(USE_GROUP_SU2)
65 const string str_vlevel = params_test.
get_string(
"verbose_level");
67 const bool do_check = params_test.
is_set(
"expected_result");
68 const double expected_result = do_check ? params_test.
get_double(
"expected_result") : 0.0;
76 const int i_seed_noise = 1234567;
92 for (
int site = 0; site < Nvol; ++site) {
93 for (
int mu = 0; mu < Ndim; ++mu) {
94 U->
mat(link, site, mu);
100 av += sqrt(unity.
norm2());
109 vout.
general(vl,
" ave |UU^dag - I| = %23.16e\n", av_all / Nvol / NPE / Ndim);
111 const double result = av_all / Nvol / NPE / Ndim;
119 vout.
detailed(vl,
"check skipped: expected_result not set.\n\n");
Random number generator base on M-series.
void detailed(const char *format,...)
void general(const char *format,...)
const std::string test_name
void set_random(RandomNumbers *rand)
Parameters lookup(const string &key) const
static bool RegisterTest(const std::string &key, const Test_function func)
double get_double(const string &key) const
bool is_set(const string &key) const
void multadd_nd(const Mat_SU_N &u1, const Mat_SU_N &u2)
static void read(const std::string ¶ms_file, Parameters ¶ms)
int verify(const double result, const double expected, double eps)
static int reduce_sum(int count, double *recv_buf, double *send_buf, int pattern=0)
make a global sum of an array of double over the communicator. pattern specifies the dimensions to be...
string get_string(const string &key) const
void report(const Bridge::VerboseLevel vl=Bridge::GENERAL)
Mat_SU_N mat(const int site, const int mn=0) const
static VerboseLevel set_verbose_level(const std::string &str)