diff --git a/CMakeLists_files.cmake b/CMakeLists_files.cmake index 5f4004e7..09a67d9a 100644 --- a/CMakeLists_files.cmake +++ b/CMakeLists_files.cmake @@ -182,6 +182,7 @@ list (APPEND TEST_DATA_FILES tests/testBlackoilState1.DATA tests/testBlackoilState2.DATA tests/wells_manager_data.data + tests/deadfluids.DATA ) # originally generated with the command: diff --git a/tests/deadfluids.DATA b/tests/deadfluids.DATA new file mode 100644 index 00000000..37b3c6ee --- /dev/null +++ b/tests/deadfluids.DATA @@ -0,0 +1,9 @@ +WATER +OIL +GAS + +PVDO +100 1.0 1.0 +200 0.9 1.0 +/ + diff --git a/tests/test_equil.cpp b/tests/test_equil.cpp index 27b46b55..7060c501 100644 --- a/tests/test_equil.cpp +++ b/tests/test_equil.cpp @@ -23,6 +23,7 @@ #include #include +#include #include #include @@ -92,6 +93,9 @@ BOOST_AUTO_TEST_CASE (PhasePressure) BOOST_CHECK_CLOSE(ppress[1][last ] , 166.5e3 , reltol); } + + + BOOST_AUTO_TEST_CASE (CellSubset) { typedef std::vector PVal; @@ -204,6 +208,9 @@ BOOST_AUTO_TEST_CASE (CellSubset) BOOST_CHECK_CLOSE(ppress[1][last ] , 166.5e3 , reltol); } + + + BOOST_AUTO_TEST_CASE (RegMapping) { typedef std::vector PVal; @@ -312,4 +319,17 @@ BOOST_AUTO_TEST_CASE (RegMapping) BOOST_CHECK_CLOSE(ppress[1][last ] , 166.5e3 , reltol); } + + +BOOST_AUTO_TEST_CASE (DeckAllDead) +{ + std::shared_ptr + grid(create_grid_cart3d(10, 1, 10), destroy_grid); + Opm::EclipseGridParser deck("deadfluids.DATA"); + Opm::BlackoilPropertiesFromDeck props(deck, *grid, false); + Opm::equil::DeckDependent::PhasePressureComputer comp(props, deck, *grid); +} + + + BOOST_AUTO_TEST_SUITE_END()