mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Still working on test_equil.cpp.
This commit is contained in:
parent
b9589097fc
commit
33a2030170
@ -324,10 +324,19 @@ BOOST_AUTO_TEST_CASE (RegMapping)
|
|||||||
BOOST_AUTO_TEST_CASE (DeckAllDead)
|
BOOST_AUTO_TEST_CASE (DeckAllDead)
|
||||||
{
|
{
|
||||||
std::shared_ptr<UnstructuredGrid>
|
std::shared_ptr<UnstructuredGrid>
|
||||||
grid(create_grid_cart3d(10, 1, 10), destroy_grid);
|
grid(create_grid_cart3d(1, 1, 10), destroy_grid);
|
||||||
Opm::EclipseGridParser deck("deadfluids.DATA");
|
Opm::EclipseGridParser deck("deadfluids.DATA");
|
||||||
Opm::BlackoilPropertiesFromDeck props(deck, *grid, false);
|
Opm::BlackoilPropertiesFromDeck props(deck, *grid, false);
|
||||||
Opm::equil::DeckDependent::PhasePressureComputer<Opm::EclipseGridParser> comp(props, deck, *grid);
|
Opm::equil::DeckDependent::PhasePressureComputer<Opm::EclipseGridParser> comp(props, deck, *grid);
|
||||||
|
const auto& pressures = comp.press();
|
||||||
|
BOOST_REQUIRE(pressures.size() == 3);
|
||||||
|
BOOST_REQUIRE(int(pressures[0].size()) == grid->number_of_cells);
|
||||||
|
for (auto pp : pressures) {
|
||||||
|
for (auto p : pp){
|
||||||
|
std::cout << p << ' ';
|
||||||
|
}
|
||||||
|
std::cout << std::endl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user