added: simple HDF5File class

bare minimum to enable reading and writing byte arrays
This commit is contained in:
Arne Morten Kvarving
2023-01-31 10:40:42 +01:00
parent b598c27605
commit d73d52e162
5 changed files with 308 additions and 0 deletions

View File

@@ -172,6 +172,9 @@ if(MPI_FOUND)
opm/simulators/utils/ParallelSerialization.cpp
opm/simulators/utils/SetupZoltanParams.cpp)
endif()
if(HDF5_FOUND)
list(APPEND MAIN_SOURCE_FILES opm/simulators/utils/HDF5File.cpp)
endif()
# originally generated with the command:
# find tests -name '*.cpp' -a ! -wholename '*/not-unit/*' -printf '\t%p\n' | sort
@@ -218,6 +221,9 @@ endif()
if(ROCALUTION_FOUND)
list(APPEND TEST_SOURCE_FILES tests/test_rocalutionSolver.cpp)
endif()
if(HDF5_FOUND)
list(APPEND TEST_SOURCE_FILES tests/test_HDF5File.cpp)
endif()
list (APPEND TEST_DATA_FILES
tests/equil_base.DATA
@@ -430,6 +436,12 @@ list (APPEND PUBLIC_HEADER_FILES
opm/simulators/wells/WGState.hpp
)
if(HDF5_FOUND)
list(APPEND PUBLIC_HEADER_FILES
opm/simulators/utils/HDF5File.hpp
)
endif()
list (APPEND EXAMPLE_SOURCE_FILES
examples/printvfp.cpp
)