EclipseWriter: Remove the non-ERT codepaths

ERT has been a requirement for opm-parser for a while now and
opm-parser is a prerequisite of opm-core, so ERT is always
available. Thus remove the stub code to avoid bitrot...
This commit is contained in:
Andreas Lauser 2014-07-14 13:01:02 +02:00
parent 47a6aac24f
commit 26dbfb78c2

View File

@ -52,7 +52,6 @@
using namespace Opm; using namespace Opm;
using namespace Opm::parameter; using namespace Opm::parameter;
#ifdef HAVE_ERT
#include <ert/ecl/fortio.h> #include <ert/ecl/fortio.h>
#include <ert/ecl/ecl_endian_flip.h> #include <ert/ecl/ecl_endian_flip.h>
#include <ert/ecl/ecl_grid.h> #include <ert/ecl/ecl_grid.h>
@ -1122,38 +1121,6 @@ void EclipseWriter::writeTimeStep(const SimulatorTimer& timer,
++outputTimeStepIdx_; ++outputTimeStepIdx_;
} }
#else
namespace Opm {
void EclipseWriter::writeInit(const SimulatorTimer&)
{
// if we don't want to write anything, this method becomes a
// no-op...
if (!enableOutput_) {
return;
}
OPM_THROW(std::runtime_error,
"The ERT libraries are required to write ECLIPSE output files.");
}
void EclipseWriter::writeTimeStep(
const SimulatorTimer&,
const SimulatorState&,
const WellState&)
{
// if we don't want to write anything, this method becomes a
// no-op...
if (!enableOutput_) {
return;
}
OPM_THROW(std::runtime_error,
"The ERT libraries are required to write ECLIPSE output files.");
}
#endif // HAVE_ERT
EclipseWriter::EclipseWriter ( EclipseWriter::EclipseWriter (
const ParameterGroup& params, const ParameterGroup& params,
Opm::DeckConstPtr deck, Opm::DeckConstPtr deck,