Test FLASH reading

This commit is contained in:
Guilhem Lavaux 2011-06-06 10:09:39 -04:00
parent 3a7a53c94f
commit b1ad1930e6
2 changed files with 23 additions and 1 deletions

View File

@ -21,3 +21,8 @@ target_link_libraries(testDelaunay ${tolink})
add_executable(testNewton testNewton.cpp)
target_link_libraries(testNewton ${tolink})
if (HDF5_FOUND)
add_executable(testReadFlash testReadFlash.cpp)
target_link_libraries(testReadFlash ${tolink})
endif (HDF5_FOUND)

17
sample/testReadFlash.cpp Normal file
View File

@ -0,0 +1,17 @@
#include <iostream>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#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;
}