From 7997917c075f3d07e71f5d204168161b2aa5c782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Mon, 3 Feb 2014 15:36:20 +0100 Subject: [PATCH] Add (unfinished) test case. --- tests/deadfluids.DATA | 9 +++++++++ tests/test_equil.cpp | 20 ++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 tests/deadfluids.DATA diff --git a/tests/deadfluids.DATA b/tests/deadfluids.DATA new file mode 100644 index 000000000..37b3c6ee4 --- /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 27b46b559..7060c501c 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()