mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Add (unfinished) test case.
This commit is contained in:
parent
97014713ce
commit
7997917c07
9
tests/deadfluids.DATA
Normal file
9
tests/deadfluids.DATA
Normal file
@ -0,0 +1,9 @@
|
||||
WATER
|
||||
OIL
|
||||
GAS
|
||||
|
||||
PVDO
|
||||
100 1.0 1.0
|
||||
200 0.9 1.0
|
||||
/
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user