Fix bug selected well log file for source well (#10159)

Did not use selected well log file in dialog for source well when generating depth adjusted las file - chose first las file available for source well.
This commit is contained in:
Jørgen Herje
2023-04-24 13:31:19 +02:00
committed by GitHub
parent 350db4d6a9
commit d7b2da35b0
4 changed files with 26 additions and 3 deletions

View File

@@ -114,12 +114,15 @@ LasDepthValueAndIndexPerKLayer
//--------------------------------------------------------------------------------------------------
void RicCreateDepthAdjustedLasFilesImpl::createDestinationWellsLasFiles( RimCase* selectedCase,
RimWellPath* sourceWell,
RimWellLogFile* soureWellLogFile,
const std::vector<RimWellPath*> destinationWells,
const std::vector<QString>& selectedResultProperties,
const QString& exportFolder,
double rkbDiff )
{
auto* sourceWellLogData = sourceWell->wellLogFiles()[0]->wellLogFileData();
if ( !selectedCase || !sourceWell || !soureWellLogFile || destinationWells.empty() ) return;
auto* sourceWellLogData = soureWellLogFile->wellLogFileData();
const auto defaultPropertyMap = createDefaultPropertyMap( selectedResultProperties, sourceWellLogData );
// NOTE: map createIndexKDepthDataMapFromCase is created using well extractor, while sourceWellLogData depth