Produce valid K when invalid K for wells is detected

When an invalid K index is detected, use K-index of the lowest active cell for given IJ location. Invalid K are seen for both well heads and well cells.
p4#: 20254
This commit is contained in:
Magne Sjaastad
2013-01-25 15:20:41 +01:00
parent 571da22931
commit 715e42b10b
2 changed files with 64 additions and 8 deletions

View File

@@ -24,6 +24,7 @@
class RifEclipseOutputFileTools;
class RifEclipseRestartDataAccess;
class RigGridBase;
typedef struct ecl_grid_struct ecl_grid_type;
@@ -53,6 +54,8 @@ private:
bool buildMetaData(RigReservoir* reservoir);
void readWellCells(RigReservoir* reservoir);
int findSmallestActiveCellIndexK( const RigGridBase* grid, int cellI, int cellJ);
static RifEclipseRestartDataAccess* staticResultsAccess(const QStringList& fileSet, size_t numGrids, size_t numActiveCells);
static RifEclipseRestartDataAccess* dynamicResultsAccess(const QStringList& fileSet, size_t numGrids, size_t numActiveCells);