From 7a394df43fd117aa926bd058f14422457a2e84cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20H=C3=A6gland?= Date: Thu, 23 Sep 2021 11:54:00 +0200 Subject: [PATCH] Include header to use std::logic_error() And some minor stylistic changes. --- opm/simulators/flow/python/PyBlackOilSimulator.hpp | 2 +- python/simulators/PyBlackOilSimulator.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/opm/simulators/flow/python/PyBlackOilSimulator.hpp b/opm/simulators/flow/python/PyBlackOilSimulator.hpp index aedeea758..d2861b811 100644 --- a/opm/simulators/flow/python/PyBlackOilSimulator.hpp +++ b/opm/simulators/flow/python/PyBlackOilSimulator.hpp @@ -33,8 +33,8 @@ namespace Opm::Pybind { class PyBlackOilSimulator { - using TypeTag = Opm::Properties::TTag::EclFlowProblem; private: + using TypeTag = Opm::Properties::TTag::EclFlowProblem; using Simulator = Opm::GetPropType; public: diff --git a/python/simulators/PyBlackOilSimulator.cpp b/python/simulators/PyBlackOilSimulator.cpp index 81cc633ca..d57977390 100644 --- a/python/simulators/PyBlackOilSimulator.cpp +++ b/python/simulators/PyBlackOilSimulator.cpp @@ -28,6 +28,7 @@ // NOTE: EXIT_SUCCESS, EXIT_FAILURE is defined in cstdlib #include #include +#include #include #include @@ -56,7 +57,7 @@ const Opm::FlowMainEbos& PyBlackOilSimulator::getFlowMainEbos() const { if (this->mainEbos_) { - return *(this->mainEbos_.get()); + return *this->mainEbos_; } else { throw std::runtime_error("BlackOilSimulator not initialized: "