Valve Import: Make sure default values are handled correctly

This commit is contained in:
Magne Sjaastad 2023-10-12 10:01:42 +02:00
parent 4a3cdc4e94
commit 6469888626

View File

@ -263,11 +263,16 @@ std::vector<RiaOpmParserTools::AicdTemplateValues> RiaOpmParserTools::extractWse
auto typeTag = deckItem.getType();
if ( typeTag == Opm::type_tag::fdouble )
{
// Only read out explicitly set values. If the value is defaulted, do not read out the value to make sure the string
// "1*" is displayed in the GUI
if ( !deckItem.defaultApplied( 0 ) )
{
double doubleValue = deckItem.get<double>( 0 );
aicdTemplate[deckItem.name()] = doubleValue;
}
}
}
aicdData.push_back( aicdTemplate );
}