ebos: add accessor methods to the non-constant deck and eclipseState

these are required by fun things like applyModifierDeck().
This commit is contained in:
Andreas Lauser 2016-08-08 15:47:41 +02:00
parent 22ecf54d41
commit 679651bca1

View File

@ -151,12 +151,18 @@ public:
Opm::DeckConstPtr deck() const Opm::DeckConstPtr deck() const
{ return deck_; } { return deck_; }
Opm::DeckPtr deck()
{ return deck_; }
/*! /*!
* \brief Return a pointer to the internalized ECL deck * \brief Return a pointer to the internalized ECL deck
*/ */
Opm::EclipseStateConstPtr eclState() const Opm::EclipseStateConstPtr eclState() const
{ return eclState_; } { return eclState_; }
Opm::EclipseStatePtr eclState()
{ return eclState_; }
/*! /*!
* \brief Return a pointer to the internalized schedule of the ECL deck * \brief Return a pointer to the internalized schedule of the ECL deck
*/ */
@ -247,9 +253,8 @@ private:
{ return *static_cast<const Implementation*>(this); } { return *static_cast<const Implementation*>(this); }
std::string caseName_; std::string caseName_;
Opm::DeckConstPtr deck_; Opm::DeckPtr deck_;
Opm::EclipseStateConstPtr eclState_; Opm::EclipseStatePtr eclState_;
}; };
} // namespace Ewoms } // namespace Ewoms