diff --git a/ApplicationCode/ReservoirDataModel/RigGeoMechWellLogExtractor.cpp b/ApplicationCode/ReservoirDataModel/RigGeoMechWellLogExtractor.cpp index 627498c7de..b9ca8e9a9f 100644 --- a/ApplicationCode/ReservoirDataModel/RigGeoMechWellLogExtractor.cpp +++ b/ApplicationCode/ReservoirDataModel/RigGeoMechWellLogExtractor.cpp @@ -237,7 +237,8 @@ std::vector return finalSourcesPerSegment; } - bool isPPresult = parameter == RigWbsParameter::PP_Reservoir() || parameter == RigWbsParameter::PP_NonReservoir(); + bool isPPResResult = parameter == RigWbsParameter::PP_Reservoir(); + bool isPPresult = isPPResResult || parameter == RigWbsParameter::PP_NonReservoir(); std::vector allSources = parameter.sources(); auto primary_it = std::find( allSources.begin(), allSources.end(), primarySource ); @@ -315,9 +316,11 @@ std::vector { if ( !lasFileValues.empty() ) { - double lasValue = getWellLogIntersectionValue( intersectionIdx, lasFileValues ); - if ( lasValue != std::numeric_limits::infinity() && intersectionIdx < gridValues.size() && - gridValues[intersectionIdx] != std::numeric_limits::infinity() ) + double lasValue = getWellLogIntersectionValue( intersectionIdx, lasFileValues ); + // Only accept las-values for reservoir if the result is PP Reservoir + bool invalidLasRegion = isPPResResult && intersectionIdx < gridValues.size() && + gridValues[intersectionIdx] != std::numeric_limits::infinity(); + if ( lasValue != std::numeric_limits::infinity() && !invalidLasRegion ) { unscaledValues[intersectionIdx] = lasValue; finalSourcesPerSegment[intersectionIdx] = RigWbsParameter::LAS_FILE; diff --git a/ApplicationCode/ReservoirDataModel/RigWbsParameter.cpp b/ApplicationCode/ReservoirDataModel/RigWbsParameter.cpp index 40d9daf24b..307aecbdab 100644 --- a/ApplicationCode/ReservoirDataModel/RigWbsParameter.cpp +++ b/ApplicationCode/ReservoirDataModel/RigWbsParameter.cpp @@ -245,7 +245,7 @@ RigWbsParameter RigWbsParameter::PP_Reservoir() {LAS_FILE, SourceAddress( "POR_RES_INP", "", RiaWellLogUnitTools::gPerCm3UnitString() )}, {ELEMENT_PROPERTY_TABLE, SourceAddress( "POR_INP", "", RiaWellLogUnitTools::pascalUnitString() )}, {ELEMENT_PROPERTY_TABLE, SourceAddress( "PP_INP", "", RiaWellLogUnitTools::sg_emwUnitString() )}}; - return RigWbsParameter( "PP Reservoir", true, sources ); + return RigWbsParameter( "PP_Reservoir", true, sources ); } //-------------------------------------------------------------------------------------------------- @@ -260,7 +260,7 @@ RigWbsParameter RigWbsParameter::PP_NonReservoir() {ELEMENT_PROPERTY_TABLE, SourceAddress( "PP_NONRES_INP", "", RiaWellLogUnitTools::sg_emwUnitString() )}, {HYDROSTATIC, SourceAddress( "Hydrostatic", "", RiaWellLogUnitTools::barUnitString() )}}; - return RigWbsParameter( "PP Non-Reservoir", true, sources ); + return RigWbsParameter( "PP_Non-Reservoir", true, sources ); } //-------------------------------------------------------------------------------------------------- @@ -268,7 +268,7 @@ RigWbsParameter RigWbsParameter::PP_NonReservoir() //-------------------------------------------------------------------------------------------------- RigWbsParameter RigWbsParameter::poissonRatio() { - return RigWbsParameter( "Poisson Ratio", + return RigWbsParameter( "Poisson_Ratio", false, {{LAS_FILE, SourceAddress( "POISSON_RATIO_INP" )}, {ELEMENT_PROPERTY_TABLE, SourceAddress( "POISSON_RATIO_INP" )}, @@ -296,7 +296,7 @@ RigWbsParameter RigWbsParameter::OBG() std::vector> sources = {{GRID, SourceAddress( "ST", "S33", RiaWellLogUnitTools::barUnitString() )}, {LAS_FILE, SourceAddress( "OBG_INP", "", RiaWellLogUnitTools::barUnitString() )}}; - return RigWbsParameter( "OBG Input", true, sources ); + return RigWbsParameter( "OBG_Input", true, sources ); } //-------------------------------------------------------------------------------------------------- @@ -317,7 +317,7 @@ RigWbsParameter RigWbsParameter::SH() { std::vector> sources = { {GRID, SourceAddress( "ST", "S3", RiaWellLogUnitTools::barUnitString() )}}; - return RigWbsParameter( "SH Input", true, sources ); + return RigWbsParameter( "SH_Input", true, sources ); } //-------------------------------------------------------------------------------------------------- @@ -361,7 +361,7 @@ RigWbsParameter RigWbsParameter::K0_SH() //-------------------------------------------------------------------------------------------------- RigWbsParameter RigWbsParameter::FG_Shale() { - RigWbsParameter param( "FG Shale", + RigWbsParameter param( "FG_Shale", false, {{DERIVED_FROM_K0FG, SourceAddress()}, {PROPORTIONAL_TO_SH, SourceAddress()}, @@ -376,7 +376,7 @@ RigWbsParameter RigWbsParameter::FG_Shale() //-------------------------------------------------------------------------------------------------- RigWbsParameter RigWbsParameter::waterDensity() { - RigWbsParameter param( "Density of Sea Water", + RigWbsParameter param( "WaterDensity", false, {{USER_DEFINED, SourceAddress()}, {LAS_FILE, SourceAddress( "RHO_INP", "", RiaWellLogUnitTools::gPerCm3UnitString() )}} );