mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Use std::shared_ptr for Python handle to Schedule
This commit is contained in:
@@ -326,7 +326,7 @@ int main(int argc, char** argv)
|
||||
std::cout << "Reading deck file '" << deckFilename << "'\n";
|
||||
std::cout.flush();
|
||||
}
|
||||
Opm::Python python;
|
||||
auto python = std::make_shared<Opm::Python>();
|
||||
std::shared_ptr<Opm::Deck> deck;
|
||||
std::shared_ptr<Opm::EclipseState> eclipseState;
|
||||
std::shared_ptr<Opm::Schedule> schedule;
|
||||
|
||||
@@ -355,7 +355,7 @@ int mainFlow(int argc, char** argv)
|
||||
std::cout << "Reading deck file '" << deckFilename << "'\n";
|
||||
std::cout.flush();
|
||||
}
|
||||
Opm::Python python;
|
||||
std::shared_ptr<Opm::Python> python = std::make_shared<Opm::Python>();
|
||||
std::shared_ptr<Opm::Deck> deck;
|
||||
std::shared_ptr<Opm::EclipseState> eclipseState;
|
||||
std::shared_ptr<Opm::Schedule> schedule;
|
||||
|
||||
Reference in New Issue
Block a user