mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-28 02:00:59 -06:00
Merge pull request #5246 from bska/max-regid-common
Switch to Using Declared Maximum Region IDs From Common
This commit is contained in:
commit
1d758706df
@ -32,8 +32,6 @@
|
|||||||
#include <opm/input/eclipse/EclipseState/EclipseState.hpp>
|
#include <opm/input/eclipse/EclipseState/EclipseState.hpp>
|
||||||
#include <opm/input/eclipse/EclipseState/Runspec.hpp>
|
#include <opm/input/eclipse/EclipseState/Runspec.hpp>
|
||||||
#include <opm/input/eclipse/EclipseState/SummaryConfig/SummaryConfig.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/RFTConfig.hpp>
|
||||||
#include <opm/input/eclipse/Schedule/Schedule.hpp>
|
#include <opm/input/eclipse/Schedule/Schedule.hpp>
|
||||||
@ -155,12 +153,6 @@ std::string EclString(const Opm::Inplace::Phase phase)
|
|||||||
|
|
||||||
return regions;
|
return regions;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::size_t declaredMaxRegionID(const Opm::Runspec& rspec)
|
|
||||||
{
|
|
||||||
return std::max(rspec.tabdims().getNumFIPRegions(),
|
|
||||||
rspec.regdims().getNTFIP());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace Opm {
|
namespace Opm {
|
||||||
|
Loading…
Reference in New Issue
Block a user