Test FLASH reading
This commit is contained in:
parent
3a7a53c94f
commit
b1ad1930e6
@ -20,4 +20,9 @@ add_executable(testDelaunay testDelaunay.cpp)
|
|||||||
target_link_libraries(testDelaunay ${tolink})
|
target_link_libraries(testDelaunay ${tolink})
|
||||||
|
|
||||||
add_executable(testNewton testNewton.cpp)
|
add_executable(testNewton testNewton.cpp)
|
||||||
target_link_libraries(testNewton ${tolink})
|
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
17
sample/testReadFlash.cpp
Normal 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user