mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user