mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5950 Wbs: Fix wrong behaviour for LAS-file PP_INP
This commit is contained in:
parent
2df4def7b1
commit
67b5dc8615
@ -317,10 +317,15 @@ std::vector<RigGeoMechWellLogExtractor::WbsParameterSource>
|
||||
if ( !lasFileValues.empty() )
|
||||
{
|
||||
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<double>::infinity();
|
||||
if ( lasValue != std::numeric_limits<double>::infinity() && !invalidLasRegion )
|
||||
// Only accept las-values for PP_reservoir if the grid result is valid
|
||||
bool validLasRegion = true;
|
||||
if (isPPResResult)
|
||||
{
|
||||
validLasRegion = intersectionIdx < gridValues.size() &&
|
||||
gridValues[intersectionIdx] != std::numeric_limits<double>::infinity();
|
||||
}
|
||||
|
||||
if ( validLasRegion && lasValue != std::numeric_limits<double>::infinity())
|
||||
{
|
||||
unscaledValues[intersectionIdx] = lasValue;
|
||||
finalSourcesPerSegment[intersectionIdx] = RigWbsParameter::LAS_FILE;
|
||||
|
Loading…
Reference in New Issue
Block a user