8#ifndef OPENFPM_IO_SRC_HDF5_XDMFWRITER_HDF5_XDMFWRITER_UNIT_TESTS_HPP_
9#define OPENFPM_IO_SRC_HDF5_XDMFWRITER_HDF5_XDMFWRITER_UNIT_TESTS_HPP_
11#include "VCluster.hpp"
12#include "util/SimpleRNG.hpp"
13#include "HDF5_XdmfWriter.hpp"
15BOOST_AUTO_TEST_SUITE( HDF5_writer_test )
18BOOST_AUTO_TEST_CASE( HDF5_writer_use)
34 for (
size_t i = 0 ; i < 1000 ; i++)
37 p[0] = rng.GetUniform();
38 p[1] = rng.GetUniform();
39 p[2] = z_base+rng.GetUniform();
52 h5p.template write<Point<3,double>,
Point_test<double>,0,1,4,5>(
"h5part.h5",pv,pvp,1000);
56 bool test = compare(
"test_h5part.h5part",
"test_h5part_test.h5part");
57 BOOST_REQUIRE_EQUAL(
true,test);
60BOOST_AUTO_TEST_SUITE_END()
Test structure used for several test.
This class implement the point shape in an N-dimensional space.
SimpleRNG is a simple random number generator based on George Marsaglia's MWC (multiply with carry) g...
size_t getProcessUnitID()
Get the process unit id.
size_t getProcessingUnits()
Get the total number of processors.
Implementation of VCluster class.
Implementation of 1-D std::vector like structure.