Merge pull request #415 from joakim-hove/use-shared-ptr
Use std::shared_ptr for Python handle
This commit is contained in:
commit
30cbe6ed25
@ -632,7 +632,7 @@ inline void testAll()
|
|||||||
Opm::Parser parser;
|
Opm::Parser parser;
|
||||||
|
|
||||||
auto deck = parser.parseString(deckString1);
|
auto deck = parser.parseString(deckString1);
|
||||||
Opm::Python python;
|
auto python = std::make_shared<Opm::Python>();
|
||||||
Opm::EclipseState eclState(deck);
|
Opm::EclipseState eclState(deck);
|
||||||
Opm::Schedule schedule(deck, eclState, python);
|
Opm::Schedule schedule(deck, eclState, python);
|
||||||
|
|
||||||
|
@ -224,7 +224,7 @@ inline void testAll()
|
|||||||
static const Scalar tolerance = std::numeric_limits<Scalar>::epsilon()*1e3;
|
static const Scalar tolerance = std::numeric_limits<Scalar>::epsilon()*1e3;
|
||||||
|
|
||||||
Opm::Parser parser;
|
Opm::Parser parser;
|
||||||
Opm::Python python;
|
auto python = std::make_shared<Opm::Python>();
|
||||||
|
|
||||||
auto deck = parser.parseString(deckString1);
|
auto deck = parser.parseString(deckString1);
|
||||||
Opm::EclipseState eclState(deck);
|
Opm::EclipseState eclState(deck);
|
||||||
|
@ -75,7 +75,7 @@ void ensureBlackoilApi()
|
|||||||
// that they compile
|
// that they compile
|
||||||
while (false) {
|
while (false) {
|
||||||
#if HAVE_ECL_INPUT
|
#if HAVE_ECL_INPUT
|
||||||
Opm::Python python;
|
auto python = std::make_shared<Opm::Python>();
|
||||||
Opm::Deck deck;
|
Opm::Deck deck;
|
||||||
Opm::EclipseState eclState(deck);
|
Opm::EclipseState eclState(deck);
|
||||||
Opm::Schedule schedule(deck, eclState, python);
|
Opm::Schedule schedule(deck, eclState, python);
|
||||||
|
Loading…
Reference in New Issue
Block a user