mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Initialize boolean variables in-class.
Initialize the boolean variables hasRunInit_ and hasRunCleanup_ in the class instead of in the constructor.
This commit is contained in:
@@ -40,12 +40,12 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
const std::string deckFilename_;
|
const std::string deckFilename_;
|
||||||
bool hasRunInit_;
|
bool hasRunInit_ = false;
|
||||||
bool hasRunCleanup_;
|
bool hasRunCleanup_ = false;
|
||||||
|
|
||||||
std::unique_ptr<FlowMainEbosType> mainEbos_;
|
std::unique_ptr<FlowMainEbosType> mainEbos_;
|
||||||
std::unique_ptr<Opm::Main> main_;
|
std::unique_ptr<Opm::Main> main_;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Opm::Python
|
} // namespace Opm::Pybind
|
||||||
#endif // OPM_SIMULATORS_HEADER_INCLUDED
|
#endif // OPM_SIMULATORS_HEADER_INCLUDED
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ namespace py = pybind11;
|
|||||||
|
|
||||||
namespace Opm::Pybind {
|
namespace Opm::Pybind {
|
||||||
BlackOilSimulator::BlackOilSimulator( const std::string &deckFilename)
|
BlackOilSimulator::BlackOilSimulator( const std::string &deckFilename)
|
||||||
: deckFilename_{deckFilename}, hasRunInit_{false}, hasRunCleanup_{false}
|
: deckFilename_{deckFilename}
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user