diff --git a/opm/simulators/flow/python/simulators.hpp b/opm/simulators/flow/python/simulators.hpp index 588596360..07ff65720 100644 --- a/opm/simulators/flow/python/simulators.hpp +++ b/opm/simulators/flow/python/simulators.hpp @@ -40,12 +40,12 @@ public: private: const std::string deckFilename_; - bool hasRunInit_; - bool hasRunCleanup_; + bool hasRunInit_ = false; + bool hasRunCleanup_ = false; std::unique_ptr mainEbos_; std::unique_ptr main_; }; -} // namespace Opm::Python +} // namespace Opm::Pybind #endif // OPM_SIMULATORS_HEADER_INCLUDED diff --git a/python/simulators/simulators.cpp b/python/simulators/simulators.cpp index b552f9e55..38e6c0e0b 100644 --- a/python/simulators/simulators.cpp +++ b/python/simulators/simulators.cpp @@ -18,7 +18,7 @@ namespace py = pybind11; namespace Opm::Pybind { BlackOilSimulator::BlackOilSimulator( const std::string &deckFilename) - : deckFilename_{deckFilename}, hasRunInit_{false}, hasRunCleanup_{false} + : deckFilename_{deckFilename} { }