Merge pull request #5008 from aritorto/compressedLevelZero

compressedLevelZero used to read relative permeability
This commit is contained in:
Markus Blatt 2023-11-24 13:21:23 +01:00 committed by GitHub
commit 24408862ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -197,6 +197,10 @@ public:
int compressedSize() const
{ return cartesianIndex_.size(); }
/** \brief return number of cells in the active grid. Only for unifying calls with CpGrid and PolyhedralGrid specializations. */
int compressedLevelZeroSize() const
{ return cartesianIndex_.size(); }
/** \brief return index of the cells in the logical Cartesian grid */
int cartesianIndex(const int compressedElementIndex) const
{

View File

@ -840,7 +840,7 @@ namespace Opm {
{
// All end points are subject to round-off errors, checks should account for it
const float tolerance = 1e-6;
const int nc = cartesianIndexMapper.compressedSize();
const int nc = cartesianIndexMapper.compressedLevelZeroSize();
const bool threepoint = eclState.runspec().endpointScaling().threepoint();
scaledEpsInfo_.resize(nc);
EclEpsGridProperties epsGridProperties(eclState, false);