mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
uses new api, made reference instead of copy
This commit is contained in:
parent
8ce248bc63
commit
eb700248ed
@ -55,7 +55,7 @@ BOOST_AUTO_TEST_CASE(Processing)
|
|||||||
Opm::ParseContext parseContext({{ ParseContext::PARSE_RANDOM_SLASH , InputError::IGNORE }});
|
Opm::ParseContext parseContext({{ ParseContext::PARSE_RANDOM_SLASH , InputError::IGNORE }});
|
||||||
Opm::DeckConstPtr deck = parser->parseFile(filename, parseContext);
|
Opm::DeckConstPtr deck = parser->parseFile(filename, parseContext);
|
||||||
std::shared_ptr<EclipseState> eclstate (new Opm::EclipseState(deck, parseContext));
|
std::shared_ptr<EclipseState> eclstate (new Opm::EclipseState(deck, parseContext));
|
||||||
std::vector<double> porv = eclstate->getDoubleGridProperty("PORV")->getData();
|
const auto& porv = eclstate->getEclipseProperties().getDoubleGridProperty("PORV").getData();
|
||||||
EclipseGridConstPtr eclgrid = eclstate->getEclipseGrid();
|
EclipseGridConstPtr eclgrid = eclstate->getEclipseGrid();
|
||||||
|
|
||||||
BOOST_CHECK_EQUAL(eclgrid->getMinpvMode(), MinpvMode::EclSTD);
|
BOOST_CHECK_EQUAL(eclgrid->getMinpvMode(), MinpvMode::EclSTD);
|
||||||
|
Loading…
Reference in New Issue
Block a user