Use std::shared_ptr for Python handle to Schedule

This commit is contained in:
Joakim Hove
2020-03-31 12:28:07 +02:00
parent 4a6814d6bc
commit d6a1d3029e
7 changed files with 9 additions and 7 deletions
@@ -52,6 +52,7 @@ struct Setup
: es (deck)
, pu (Opm::phaseUsageFromDeck(es))
, grid (es.getInputGrid())
, python( std::make_shared<Opm::Python>() )
, sched(deck, es, python)
, st(std::chrono::system_clock::from_time_t(sched.getStartTime()))
{
@@ -102,10 +103,10 @@ struct Setup
}
}
Opm::Python python;
Opm::EclipseState es;
Opm::PhaseUsage pu;
Opm::GridManager grid;
std::shared_ptr<Opm::Python> python;
Opm::Schedule sched;
Opm::SummaryState st;
std::vector<std::vector<Opm::PerforationData>> well_perf_data;