mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 14:40:26 -05:00
Sector Export: handle missing OPERNUM.
Also use keyword when inserting in deck.
This commit is contained in:
1 parent
df8fbfe458
commit
9f597c63f9
6 files changed
+63
-16
No files matched your search
@@ -204,6 +204,10 @@ int generateOperNumResult( RimEclipseCase* eclipseCase, int borderCellValue )
|
||||
result[i] = static_cast<int>( existingValues[i] );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
borderCellValue = 2;
|
||||
}
|
||||
|
||||
// Check if BORDNUM exists to modify border cells
|
||||
RigEclipseResultAddress bordNumAddr( RiaDefines::ResultCatType::GENERATED, RiaDefines::ResultDataType::INTEGER, RiaResultNames::bordnum() );
|
||||
@@ -213,7 +217,7 @@ int generateOperNumResult( RimEclipseCase* eclipseCase, int borderCellValue )
|
||||
auto bordNumValues = resultsData->cellScalarResults( bordNumAddr, 0 );
|
||||
if ( !bordNumValues.empty() )
|
||||
{
|
||||
result.resize( bordNumValues.size(), 0 );
|
||||
result.resize( bordNumValues.size(), 1 );
|
||||
|
||||
for ( auto activeCellIdx : activeReservoirCellIdxs )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user