changed: this is better kept a compile time error

This commit is contained in:
Arne Morten Kvarving
2021-05-06 10:26:01 +02:00
parent 3397cd6252
commit bba700e7a2
2 changed files with 2 additions and 7 deletions

View File

@@ -27,8 +27,6 @@
#ifndef EWOMS_ECL_BASE_VANGUARD_HH #ifndef EWOMS_ECL_BASE_VANGUARD_HH
#define EWOMS_ECL_BASE_VANGUARD_HH #define EWOMS_ECL_BASE_VANGUARD_HH
#include <opm/common/ErrorMacros.hpp>
#include <opm/models/io/basevanguard.hh> #include <opm/models/io/basevanguard.hh>
#include <opm/models/utils/propertysystem.hh> #include <opm/models/utils/propertysystem.hh>
#include <opm/models/utils/parametersystem.hh> #include <opm/models/utils/parametersystem.hh>
@@ -41,7 +39,6 @@
#include <array> #include <array>
#include <optional> #include <optional>
#include <stdexcept>
#include <unordered_set> #include <unordered_set>
#include <vector> #include <vector>
@@ -451,10 +448,6 @@ protected:
cellThickness_[elemIdx] = asImp_().computeCellThickness(element); cellThickness_[elemIdx] = asImp_().computeCellThickness(element);
} }
} }
Scalar computeCellThickness(const Element&) const {
OPM_THROW(std::runtime_error, "cellThickness not implemented for this grid!");
}
private: private:
// computed from averaging cell corner depths // computed from averaging cell corner depths

View File

@@ -48,6 +48,8 @@
#include <mpi.h> #include <mpi.h>
#endif // HAVE_MPI #endif // HAVE_MPI
#include <stdexcept>
namespace Opm { namespace Opm {
double EclGenericVanguard::externalSetupTime_ = 0.0; double EclGenericVanguard::externalSetupTime_ = 0.0;