mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Update to shared_ptr-less parser interface.
This commit is contained in:
@@ -46,13 +46,10 @@
|
||||
|
||||
|
||||
struct SetupSimple {
|
||||
SetupSimple()
|
||||
SetupSimple() :
|
||||
deck( Opm::Parser{}.parseFile( "fluid.data" ) ),
|
||||
eclState( deck, Opm::ParseContext() )
|
||||
{
|
||||
Opm::ParserPtr parser(new Opm::Parser());
|
||||
Opm::ParseContext parseContext;
|
||||
deck = parser->parseFile("fluid.data" , parseContext);
|
||||
eclState.reset(new Opm::EclipseState(*deck , parseContext));
|
||||
|
||||
param.disableOutput();
|
||||
param.insertParameter("init_rock" , "false" );
|
||||
param.insertParameter("threephase_model", "simple");
|
||||
@@ -61,8 +58,8 @@ struct SetupSimple {
|
||||
}
|
||||
|
||||
Opm::parameter::ParameterGroup param;
|
||||
Opm::DeckConstPtr deck;
|
||||
Opm::EclipseStateConstPtr eclState;
|
||||
Opm::Deck deck;
|
||||
Opm::EclipseState eclState;
|
||||
};
|
||||
|
||||
|
||||
@@ -71,7 +68,7 @@ struct TestFixture : public Setup
|
||||
{
|
||||
TestFixture()
|
||||
: Setup()
|
||||
, grid (*eclState->getInputGrid())
|
||||
, grid (eclState.getInputGrid())
|
||||
, ad_props(deck, eclState, *grid.c_grid(), param.getDefault("init_rock", false))
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user