diff --git a/tests/fnu_test_h5.cpp b/tests/fnu_test_h5.cpp index f7e0146..50272c0 100644 --- a/tests/fnu_test_h5.cpp +++ b/tests/fnu_test_h5.cpp @@ -10,7 +10,7 @@ #include #define PERF -// #define STATUS +#define STATUS // #define RESIDUAL #ifdef PERF @@ -166,10 +166,6 @@ int test_cycle(H5File file, int cycle, std::string version, double tolerance) { WB3(slater_inverse, dim, u, col_update_index); } else if (version == "smwb1") { SMWB1(slater_inverse, dim, nupdates, u, col_update_index); - // } else if (version == "smwb2") { - // SMWB2(slater_inverse, dim, nupdates, u, col_update_index); - // } else if (version == "smwb3") { - // SMWB3(slater_inverse, dim, nupdates, u, col_update_index); } else if (version == "smwb2") { SMWB2(slater_inverse, dim, nupdates, u, col_update_index); #ifdef MKL @@ -213,14 +209,14 @@ int main(int argc, char **argv) { if (argc != 5) { std::cerr << "Execute from within 'datasets/'" << std::endl; std::cerr - << "usage: test_h5 " + << "usage: fnu_test_h5 " << std::endl; return 1; } #else if (argc != 4) { std::cerr << "Execute from within 'datasets/'" << std::endl; - std::cerr << "usage: test_h5 " + std::cerr << "usage: fnu_test_h5 " << std::endl; return 1; } diff --git a/tests/test_h5.cpp b/tests/test_h5.cpp index 70c9787..d0a151f 100644 --- a/tests/test_h5.cpp +++ b/tests/test_h5.cpp @@ -181,15 +181,22 @@ int test_cycle(H5File file, int cycle, std::string version, double tolerance) { int main(int argc, char **argv) { #ifdef PERF if (argc != 6) { + std::cerr << "Execute from within 'datasets/'" << std::endl; + std::cerr + << "usage: test_h5 " + << std::endl; + return 1; + } #else if (argc != 5) { -#endif std::cerr << "Execute from within 'datasets/'" << std::endl; std::cerr << "usage: test_h5 " << std::endl; return 1; } +#endif + std::string version(argv[1]); int start_cycle = std::stoi(argv[2]); int stop_cycle = std::stoi(argv[3]);