Add (unfinished) test case.

This commit is contained in:
Atgeirr Flø Rasmussen 2014-02-03 15:36:20 +01:00 committed by Andreas Lauser
parent 97014713ce
commit 7997917c07
2 changed files with 29 additions and 0 deletions

9
tests/deadfluids.DATA Normal file
View File

@ -0,0 +1,9 @@
WATER
OIL
GAS
PVDO
100 1.0 1.0
200 0.9 1.0
/

View File

@ -23,6 +23,7 @@
#include <opm/core/grid/cart_grid.h>
#include <opm/core/props/BlackoilPropertiesBasic.hpp>
#include <opm/core/props/BlackoilPropertiesFromDeck.hpp>
#include <opm/core/props/BlackoilPhases.hpp>
#include <opm/core/pressure/msmfem/partition.h>
@ -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<double> 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<double> 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<UnstructuredGrid>
grid(create_grid_cart3d(10, 1, 10), destroy_grid);
Opm::EclipseGridParser deck("deadfluids.DATA");
Opm::BlackoilPropertiesFromDeck props(deck, *grid, false);
Opm::equil::DeckDependent::PhasePressureComputer<Opm::EclipseGridParser> comp(props, deck, *grid);
}
BOOST_AUTO_TEST_SUITE_END()