Merge pull request #5246 from bska/max-regid-common

Switch to Using Declared Maximum Region IDs From Common
This commit is contained in:
Bård Skaflestad 2024-03-26 13:51:42 +01:00 committed by GitHub
commit 1d758706df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,8 +32,6 @@
#include <opm/input/eclipse/EclipseState/EclipseState.hpp>
#include <opm/input/eclipse/EclipseState/Runspec.hpp>
#include <opm/input/eclipse/EclipseState/SummaryConfig/SummaryConfig.hpp>
#include <opm/input/eclipse/EclipseState/Tables/Regdims.hpp>
#include <opm/input/eclipse/EclipseState/Tables/Tabdims.hpp>
#include <opm/input/eclipse/Schedule/RFTConfig.hpp>
#include <opm/input/eclipse/Schedule/Schedule.hpp>
@ -155,12 +153,6 @@ std::string EclString(const Opm::Inplace::Phase phase)
return regions;
}
std::size_t declaredMaxRegionID(const Opm::Runspec& rspec)
{
return std::max(rspec.tabdims().getNumFIPRegions(),
rspec.regdims().getNTFIP());
}
}
namespace Opm {