#9833: Add extra check based on value/cells count

Some models do not have the dual porosity flag set correctly. Add additional check to set the dual porosity flag if the number of active cells is the double of main grid cell count.
This commit is contained in:
Magne Sjaastad
2023-02-13 13:54:43 +01:00
parent 2e6268ff0a
commit de118ddae2
4 changed files with 27 additions and 12 deletions

View File

@@ -65,7 +65,8 @@ TEST( RifActiveCellsReaderTest, BasicTest10k )
ecl_file_type* initFile =
ecl_file_open( RiaStringEncodingTools::toNativeEncoded( filePath ).data(), ECL_FILE_CLOSE_STREAM );
activeCellsFromPorv = RifActiveCellsReader::activeCellsFromPorvKeyword( initFile, false );
int cellCountMainGrid = 0;
activeCellsFromPorv = RifActiveCellsReader::activeCellsFromPorvKeyword( initFile, false, cellCountMainGrid );
EXPECT_EQ( 2, (int)activeCellsFromPorv.size() );
ecl_file_close( initFile );