#1356 Application code for reading of HDF data into ResInsight

This commit is contained in:
Magne Sjaastad
2017-03-23 07:00:00 +01:00
parent 5f4036245b
commit b29f664723
12 changed files with 374 additions and 3 deletions

View File

@@ -1,3 +1,5 @@
#ifdef USE_HDF5
#include "gtest/gtest.h"
#include "H5Cpp.h"
@@ -129,3 +131,4 @@ TEST(HDFTests, BasicFileRead)
}
#endif //USE_HDF5

View File

@@ -461,3 +461,25 @@ TEST(RigReservoirTest, WellTest)
#endif
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
TEST(RigReservoirTest, WellTest)
{
cvf::ref<RifReaderEclipseOutput> readerInterfaceEcl = new RifReaderEclipseOutput;
cvf::ref<RigEclipseCaseData> reservoir = new RigEclipseCaseData;
// Location of test dataset received from Håkon Høgstøl in July 2011 with 10k active cells
#ifdef WIN32
QString filename("d:/Models/Statoil/soursim/PKMUNK_NOV_TEST_SS.GRID");
QString sourSim("d:/Models/Statoil/soursim/result.sourres");
#else
QString filename("/mnt/hgfs/Statoil/testcase_juli_2011/data/TEST10K_FLT_LGR_NNC.EGRID");
QString sourSim("d:/Models/Statoil/soursim/result.sourres");
#endif
bool result = readerInterfaceEcl->open(filename, reservoir.p());
EXPECT_TRUE(result);
readerInterfaceEcl->setHdf5FileName(sourSim);
}