compressedLevelZero added in AluCartIdxMapper, used in RelpermDiags

This commit is contained in:
Antonella Ritorto
2023-11-20 15:56:17 +01:00
parent 3b1ef932c2
commit 6d180a7f91
2 changed files with 5 additions and 1 deletions

View File

@@ -197,6 +197,10 @@ public:
int compressedSize() const int compressedSize() const
{ return cartesianIndex_.size(); } { 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 */ /** \brief return index of the cells in the logical Cartesian grid */
int cartesianIndex(const int compressedElementIndex) const 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 // All end points are subject to round-off errors, checks should account for it
const float tolerance = 1e-6; const float tolerance = 1e-6;
const int nc = cartesianIndexMapper.compressedSize(); const int nc = cartesianIndexMapper.compressedLevelZeroSize();
const bool threepoint = eclState.runspec().endpointScaling().threepoint(); const bool threepoint = eclState.runspec().endpointScaling().threepoint();
scaledEpsInfo_.resize(nc); scaledEpsInfo_.resize(nc);
EclEpsGridProperties epsGridProperties(eclState, false); EclEpsGridProperties epsGridProperties(eclState, false);