mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Valve Import: Make sure default values are handled correctly
This commit is contained in:
parent
4a3cdc4e94
commit
6469888626
@ -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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user