8 #ifndef OPENFPM_IO_RAW_READER_UNIT_TESTS_HPP_
9 #define OPENFPM_IO_RAW_READER_UNIT_TESTS_HPP_
11 #include "RawReader.hpp"
13 BOOST_AUTO_TEST_SUITE( raw_reader_unit_test )
16 BOOST_AUTO_TEST_CASE( raw_reader_read_test )
29 rr.
read(
"test_data/raw_read_sv_test.bin",read_bin_test,FORTRAN_STYLE | STRUCT_OF_ARRAY,12);
31 auto it = read_bin_test.getIterator();
37 BOOST_REQUIRE_EQUAL(read_bin_test.template get<0>(
key),1.5f);
39 BOOST_REQUIRE_EQUAL(read_bin_test.template get<1>(
key)[0],1.5f);
40 BOOST_REQUIRE_EQUAL(read_bin_test.template get<1>(
key)[1],2.5f);
41 BOOST_REQUIRE_EQUAL(read_bin_test.template get<1>(
key)[2],3.5f);
51 BOOST_AUTO_TEST_SUITE_END()
size_t getProcessUnitID()
Get the process unit id.
Implementation of VCluster class.
This class is a trick to indicate the compiler a specific specialization pattern. ...
bool read(std::string file, grid_cpu< dim, T > &gr, size_t opt=0, size_t skip=0)
Read a raw grid.