mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-27 16:57:01 -06:00
#5604 Export Sector model: Write out values for all cells in box
A temporary workaround for export of active cells only has been removed. Now all cells are exported, and inactive cells are given default values. Default value for keywords ending in NUM is 1, default value for other is 0.0
This commit is contained in:
parent
fc7d5bc69c
commit
06fac108c3
@ -473,6 +473,12 @@ bool RifEclipseInputFileTools::exportKeywords( const QString& resul
|
||||
CVF_ASSERT( !resultValues.empty() );
|
||||
if ( resultValues.empty() ) continue;
|
||||
|
||||
double defaultExportValue = 0.0;
|
||||
if ( keyword.endsWith( "NUM" ) )
|
||||
{
|
||||
defaultExportValue = 1.0;
|
||||
}
|
||||
|
||||
std::vector<double> filteredResults;
|
||||
filteredResults.reserve( resultValues.size() );
|
||||
|
||||
@ -493,6 +499,10 @@ bool RifEclipseInputFileTools::exportKeywords( const QString& resul
|
||||
{
|
||||
filteredResults.push_back( resultValues[resIndex] );
|
||||
}
|
||||
else
|
||||
{
|
||||
filteredResults.push_back( defaultExportValue );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user