From b1ad1930e69dc89a339369f984c42c8fe3b53c97 Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Mon, 6 Jun 2011 10:09:39 -0400 Subject: [PATCH] Test FLASH reading --- sample/CMakeLists.txt | 7 ++++++- sample/testReadFlash.cpp | 17 +++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 sample/testReadFlash.cpp 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; +}