From de6a04038bcf670bcc4958df4790dd43c23da233 Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Sun, 27 Apr 2014 20:39:56 +0200 Subject: [PATCH] blackoil model: make it work with grid managers other than EclGridManager and for discretizarions other than ECFV... --- ewoms/io/eclipsewriter.hh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ewoms/io/eclipsewriter.hh b/ewoms/io/eclipsewriter.hh index 63825ca5a..0a727b4e8 100644 --- a/ewoms/io/eclipsewriter.hh +++ b/ewoms/io/eclipsewriter.hh @@ -241,6 +241,10 @@ public: return; } +#if !HAVE_ERT + OPM_THROW(std::runtime_error, + "The ERT libraries must be available to write Eclipse output!"); +#else ErtRestartFile restartFile(simulator_, reportStepIdx_); restartFile.writeHeader(simulator_, reportStepIdx_); @@ -260,6 +264,7 @@ public: // next time we take the next report step ++ reportStepIdx_; +#endif } /*!