Merge pull request #293 from akva2/adjust_ecl

adjustments for eclipse support in opm-common
This commit is contained in:
Arne Morten Kvarving authored and GitHub committed 2018-03-06 15:34:52 +01:00
commit 397c69dded
2 files changed
+13 -4

No files matched your search

+6
View File
@@ -33,10 +33,16 @@
#include <ewoms/common/parametersystem.hh>
#include <opm/material/common/Valgrind.hpp>
#if HAVE_ECL_INPUT
#include <opm/parser/eclipse/Units/Units.hpp>
#include <opm/parser/eclipse/EclipseState/SummaryConfig/SummaryConfig.hpp>
#endif
#if HAVE_ECL_OUTPUT
#include <opm/output/data/Cells.hpp>
#include <opm/output/eclipse/EclipseIO.hpp>
#endif
#include <dune/common/fvector.hh>
+7 -4
View File
@@ -34,7 +34,10 @@
#include <ewoms/disc/ecfv/ecfvdiscretization.hh>
#include <ewoms/io/baseoutputwriter.hh>
#include <ebos/threadhandle.hh>
#if HAVE_ECL_OUTPUT
#include <opm/output/eclipse/EclipseIO.hpp>
#endif
#include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Exceptions.hpp>
@@ -132,8 +135,8 @@ public:
void writeInit()
{
#if !HAVE_OPM_OUTPUT
throw std::runtime_error("opm-output must be available to write ECL output!");
#if !HAVE_ECL_OUTPUT
throw std::runtime_error("Eclipse output support not available in opm-common, unable to write ECL output!");
#else
if (collectToIORank_.isIORank()) {
std::map<std::string, std::vector<int> > integerVectors;
@@ -149,8 +152,8 @@ public:
*/
void writeOutput(Opm::data::Wells& localWellData, Scalar t, bool substep, Scalar totalSolverTime, Scalar nextstep)
{
#if !HAVE_OPM_OUTPUT
throw std::runtime_error("opm-output must be available to write ECL output!");
#if !HAVE_ECL_OUTPUT
throw std::runtime_error("Eclipse output support not available in opm-common, unable to write ECL output!");
#else
int episodeIdx = simulator_.episodeIndex() + 1;