diff --git a/examples/problems/eclproblem.hh b/examples/problems/eclproblem.hh index 841b68eb5..9de105eb3 100644 --- a/examples/problems/eclproblem.hh +++ b/examples/problems/eclproblem.hh @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -139,6 +140,9 @@ SET_BOOL_PROP(EclBaseProblem, EnableVtkOutput, false); // ... but enable the Eclipse output by default SET_BOOL_PROP(EclBaseProblem, EnableEclipseOutput, true); +// also enable the summary output. +SET_BOOL_PROP(EclBaseProblem, EnableEclipseSummaryOutput, true); + // The default DGF file to load SET_STRING_PROP(EclBaseProblem, GridFile, "data/ecl.DATA"); }} // namespace Properties, Opm @@ -181,6 +185,8 @@ class EclProblem : public GET_PROP_TYPE(TypeTag, BaseProblem) typedef typename GET_PROP_TYPE(TypeTag, Simulator) Simulator; typedef typename GET_PROP_TYPE(TypeTag, MaterialLawParams) MaterialLawParams; + typedef Ewoms::EclipseSummaryWriter EclipseSummaryWriter; + typedef Dune::FieldMatrix DimMatrix; public: @@ -204,6 +210,7 @@ public: EclProblem(Simulator &simulator) : ParentType(simulator) , wellManager_(simulator) + , summaryWriter_(simulator) { } /*! @@ -290,6 +297,10 @@ public: */ void endEpisode() { + // first, write the summary information ... + summaryWriter_.write(wellManager_); + + // ... then proceed to the next report step Simulator &simulator = this->simulator(); Opm::EclipseStateConstPtr eclipseState = this->simulator().gridManager().eclipseState(); Opm::TimeMapConstPtr timeMap = eclipseState->getSchedule()->getTimeMap(); @@ -960,6 +971,7 @@ private: Scalar temperature_; EclWellManager wellManager_; + EclipseSummaryWriter summaryWriter_; }; } // namespace Ewoms