diff --git a/sample/CMakeLists.txt b/sample/CMakeLists.txt index db9ac43..f4f6529 100644 --- a/sample/CMakeLists.txt +++ b/sample/CMakeLists.txt @@ -20,4 +20,9 @@ add_executable(testDelaunay testDelaunay.cpp) target_link_libraries(testDelaunay ${tolink}) add_executable(testNewton testNewton.cpp) -target_link_libraries(testNewton ${tolink}) \ No newline at end of file +target_link_libraries(testNewton ${tolink}) + +if (HDF5_FOUND) + add_executable(testReadFlash testReadFlash.cpp) + target_link_libraries(testReadFlash ${tolink}) +endif (HDF5_FOUND) diff --git a/sample/testReadFlash.cpp b/sample/testReadFlash.cpp new file mode 100644 index 0000000..4b1c320 --- /dev/null +++ b/sample/testReadFlash.cpp @@ -0,0 +1,17 @@ +#include +#include +#include +#include +#include "loadFlash.hpp" + +using namespace CosmoTool; +using namespace std; + +int main () { + + char* filename = "lss_read_hdf5_chk_0000"; + + SimuData* data = CosmoTool::loadFlashMulti(filename, 0, 0); + + return 0; +}