Add vanguard member UDQState

This commit is contained in:
Joakim Hove 2020-08-27 17:31:39 +02:00
parent f6d2b4fd27
commit 0fabb02db4

View File

@ -48,6 +48,8 @@
#include <opm/parser/eclipse/EclipseState/SummaryConfig/SummaryConfig.hpp>
#include <opm/parser/eclipse/EclipseState/Schedule/SummaryState.hpp>
#include <opm/parser/eclipse/EclipseState/Schedule/Action/State.hpp>
#include <opm/parser/eclipse/EclipseState/Schedule/UDQ/UDQState.hpp>
#include <opm/parser/eclipse/EclipseState/Schedule/UDQ/UDQConfig.hpp>
#include <opm/simulators/utils/readDeck.hpp>
@ -341,6 +343,7 @@ public:
/* checkDeck = */ enableExperiments);
this->summaryState_ = std::make_unique<Opm::SummaryState>( std::chrono::system_clock::from_time_t(this->eclSchedule_->getStartTime() ));
this->udqState_.reset( new Opm::UDQState( this->eclSchedule_->getUDQConfig(0).params().undefinedValue()) );
this->actionState_ = std::make_unique<Opm::Action::State>() ;
// Possibly override IOConfig setting for how often RESTART files should get
@ -428,6 +431,17 @@ public:
const Opm::Action::State& actionState() const
{ return *actionState_; }
/*!
* \brief Returns the udq state
*
* The UDQState keeps track of the result of UDQ evaluations.
*/
Opm::UDQState& udqState()
{ return *udqState_; }
const Opm::UDQState& udqState() const
{ return *udqState_; }
/*!
* \brief Parameter deciding the edge-weight strategy of the load balancer.
*/
@ -439,7 +453,7 @@ public:
*/
bool ownersFirst() const
{ return ownersFirst_; }
/*!
* \brief Returns the name of the case.
*
@ -596,6 +610,7 @@ private:
std::unique_ptr<Opm::SummaryState> summaryState_;
std::unique_ptr<Opm::Action::State> actionState_;
std::unique_ptr<Opm::UDQState> udqState_;
// these attributes point either to the internal or to the external version of the
// parser objects.