Use std::shared_ptr<Python> for Python argument in Schedule
This commit is contained in:
@@ -587,13 +587,14 @@ struct SimulationCase
|
||||
explicit SimulationCase(const Opm::Deck& deck)
|
||||
: es ( deck )
|
||||
, grid ( deck )
|
||||
, python( std::make_shared<Opm::Python>() )
|
||||
, sched( deck, es, python )
|
||||
{}
|
||||
|
||||
// Order requirement: 'es' must be declared/initialised before 'sched'.
|
||||
Opm::Python python;
|
||||
Opm::EclipseState es;
|
||||
Opm::EclipseGrid grid;
|
||||
std::shared_ptr<Opm::Python> python;
|
||||
Opm::Schedule sched;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user