Merge pull request #415 from joakim-hove/use-shared-ptr

Use std::shared_ptr for Python handle
This commit is contained in:
Joakim Hove 2020-03-31 16:50:47 +02:00 committed by GitHub
commit 30cbe6ed25
3 changed files with 3 additions and 3 deletions

View File

@ -632,7 +632,7 @@ inline void testAll()
Opm::Parser parser;
auto deck = parser.parseString(deckString1);
Opm::Python python;
auto python = std::make_shared<Opm::Python>();
Opm::EclipseState eclState(deck);
Opm::Schedule schedule(deck, eclState, python);

View File

@ -224,7 +224,7 @@ inline void testAll()
static const Scalar tolerance = std::numeric_limits<Scalar>::epsilon()*1e3;
Opm::Parser parser;
Opm::Python python;
auto python = std::make_shared<Opm::Python>();
auto deck = parser.parseString(deckString1);
Opm::EclipseState eclState(deck);

View File

@ -75,7 +75,7 @@ void ensureBlackoilApi()
// that they compile
while (false) {
#if HAVE_ECL_INPUT
Opm::Python python;
auto python = std::make_shared<Opm::Python>();
Opm::Deck deck;
Opm::EclipseState eclState(deck);
Opm::Schedule schedule(deck, eclState, python);