#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 committed 2023-03-16 07:16:11 +01:00
1 parent 07d1a3c669
commit bb9ec50e18
4 files changed
+27 -12

No files matched your search

@@ -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 );