mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#11636 Fix missing well path creation when importing LAS file without a well path file
Fixes #11636.
This commit is contained in:
parent
1b509c0384
commit
c322ba62bb
@ -1815,6 +1815,9 @@ void RiaApplication::initializeDataLoadController()
|
||||
std::make_unique<RimModeledWellPathDataLoader>() );
|
||||
|
||||
const QString wellLogKeyword = "WELL_LOG";
|
||||
dataLoadController->registerDataLoader( RimWellLogLasFile::classKeywordStatic(),
|
||||
wellLogKeyword,
|
||||
std::make_unique<RimWellLogFileDataLoader>() );
|
||||
dataLoadController->registerDataLoader( RimWellLogFile::classKeywordStatic(), wellLogKeyword, std::make_unique<RimWellLogFileDataLoader>() );
|
||||
dataLoadController->registerDataLoader( RimOsduWellLog::classKeywordStatic(), wellLogKeyword, std::make_unique<RimOsduWellLogDataLoader>() );
|
||||
}
|
||||
|
@ -152,10 +152,19 @@ bool RimWellLogLasFile::readFile( QString* errorMessage )
|
||||
m_wellLogChannels.push_back( wellLog );
|
||||
}
|
||||
|
||||
auto wellPath = firstAncestorOrThisOfType<RimFileWellPath>();
|
||||
auto fileWellPath = firstAncestorOrThisOfType<RimFileWellPath>();
|
||||
if ( fileWellPath )
|
||||
{
|
||||
if ( fileWellPath->filePath().isEmpty() ) // Has dummy wellpath
|
||||
{
|
||||
fileWellPath->setName( m_wellName );
|
||||
}
|
||||
}
|
||||
|
||||
auto wellPath = firstAncestorOrThisOfType<RimWellPath>();
|
||||
if ( wellPath )
|
||||
{
|
||||
if ( wellPath->filePath().isEmpty() ) // Has dummy wellpath
|
||||
if ( wellPath->name().isEmpty() )
|
||||
{
|
||||
wellPath->setName( m_wellName );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user