Merge pull request #1837 from totto82/summaryState

add a summary state member in eclproblem
This commit is contained in:
Atgeirr Flø Rasmussen 2019-05-14 09:25:51 +02:00 committed by GitHub
commit 3ac8e0a736
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,8 @@
#include <opm/parser/eclipse/EclipseState/Grid/EclipseGrid.hpp>
#include <opm/parser/eclipse/EclipseState/Schedule/Schedule.hpp>
#include <opm/parser/eclipse/EclipseState/SummaryConfig/SummaryConfig.hpp>
#include <opm/parser/eclipse/EclipseState/Schedule/SummaryState.hpp>
#if HAVE_MPI
#include <mpi.h>
@ -379,6 +381,21 @@ public:
static void setExternalSummaryConfig(Opm::SummaryConfig* summaryConfig)
{ externalEclSummaryConfig_ = summaryConfig; }
/*!
* \brief Returns the summary state
*
* The summary state is a small container object for
* computed, ready to use summary values. The values will typically be used by
* the UDQ, WTEST and ACTIONX calculations.
*/
const Opm::SummaryState& summaryState() const
{ return summaryState_; }
Opm::SummaryState& summaryState()
{ return summaryState_; }
/*!
* \brief Returns the name of the case.
*
@ -515,6 +532,9 @@ private:
Opm::Schedule* eclSchedule_;
Opm::SummaryConfig* eclSummaryConfig_;
Opm::SummaryState summaryState_;
};
template <class TypeTag>