removing methods for specific grid

This commit is contained in:
Elyes Ahmed 2022-06-22 11:25:31 +02:00
parent d0a1101bc8
commit 04736dcbd0
2 changed files with 0 additions and 16 deletions

View File

@ -220,7 +220,6 @@ namespace Opm {
static bool hasEqualDVDEPTHZ(const Deck&);
static bool allEqual(const std::vector<double> &v);
static void assertALuGridFormat(const Deck&);
private:
std::vector<double> m_minpvVector;

View File

@ -1266,21 +1266,6 @@ EclipseGrid::EclipseGrid(const Deck& deck, const int * actnum)
else
return false;
}
void EclipseGrid::assertALuGridFormat(const Deck& deck) {
if (EclipseGrid::hasDVDEPTHZKeywords(deck) &&
EclipseGrid::hasEqualDVDEPTHZ(deck)) {
}
else if (!EclipseGrid::hasDVDEPTHZKeywords(deck)) {
throw std::invalid_argument("Tried to initialize ALuGrid without all required keywords <DXV, DXY, DXZ, DEPTHZ>: Only Cartesian Regular Grid is supported for ALuGrid");
}
else if (EclipseGrid::hasDVDEPTHZKeywords(deck) &&
!EclipseGrid::hasEqualDVDEPTHZ(deck)) {
throw std::invalid_argument("Tried to initialize ALuGrid on non-equidistant DXV, and or DXY, and or DXZ, and or DEPTHZ: Only cell dimensions that are equal in each direction are used to initialize ALUGrid");
}
else
throw std::invalid_argument("Tried to initialize ALuGrid using unknown Grid format");
}
bool EclipseGrid::hasDTOPSKeywords(const Deck& deck) {
if ((deck.hasKeyword<ParserKeywords::DX>() || deck.hasKeyword<ParserKeywords::DXV>()) &&