#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:
Magne Sjaastad 2020-03-03 15:19:32 +01:00
parent fc7d5bc69c
commit 06fac108c3

View File

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