21 #define BOOST_TEST_MAIN HighFiveTest
22 #include <boost/mpl/list.hpp>
23 #include <boost/test/included/unit_test.hpp>
27 int argc = boost::unit_test::framework::master_test_suite().argc;
28 char**
argv = boost::unit_test::framework::master_test_suite().argv;
38 typedef boost::mpl::list<int,
unsigned int, long,
unsigned long,
unsigned char,
39 char, float, double,
long long,
unsigned long long>
45 : _init(init_val), _inc(inc_val) {}
62 if (++_init >= (
'a' + 26))
76 std::string random_string;
77 const size_t size_string = std::rand() % 1000;
78 random_string.resize(size_string);
79 std::generate(random_string.begin(), random_string.end(), gen);
87 int mpi_rank, mpi_size;
88 MPI_Comm_size(MPI_COMM_WORLD, &mpi_size);
89 MPI_Comm_rank(MPI_COMM_WORLD, &mpi_rank);
91 typedef typename std::vector<T> Vector;
94 filename <<
"h5_rw_select_parallel_test_" <<
typeid(T).name() <<
"_test.h5";
96 const size_t size_x = mpi_size;
97 const size_t offset_x = mpi_rank, count_x = mpi_size - mpi_rank;
119 std::vector<size_t> offset;
120 offset.push_back(offset_x);
121 std::vector<size_t> size;
122 size.push_back(count_x);
131 BOOST_CHECK_EQUAL(result.size(), count_x);
133 for (
size_t i = offset_x; i < count_x; ++i) {
135 BOOST_CHECK_EQUAL(
values[i + offset_x], result[i]);
141 selectionArraySimpleTestParallel<T>();