From 64698886267b97b3fd6dd310adfb8548b1e6ec95 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Thu, 12 Oct 2023 10:01:42 +0200 Subject: [PATCH] Valve Import: Make sure default values are handled correctly --- .../ProjectDataModel/RiaOpmParserTools.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ApplicationLibCode/ProjectDataModel/RiaOpmParserTools.cpp b/ApplicationLibCode/ProjectDataModel/RiaOpmParserTools.cpp index 59ac89bd84..c039cd01c5 100644 --- a/ApplicationLibCode/ProjectDataModel/RiaOpmParserTools.cpp +++ b/ApplicationLibCode/ProjectDataModel/RiaOpmParserTools.cpp @@ -264,8 +264,13 @@ std::vector RiaOpmParserTools::extractWse auto typeTag = deckItem.getType(); if ( typeTag == Opm::type_tag::fdouble ) { - double doubleValue = deckItem.get( 0 ); - aicdTemplate[deckItem.name()] = doubleValue; + // 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( 0 ); + aicdTemplate[deckItem.name()] = doubleValue; + } } }