mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 23:20:29 -05:00
#12869 Allow multiple import of all well file types
Previously, we had support for import of well log file including (some) well path geometry. Then, when the full well path was imported later, the well log data was moved to the full well path. This functionality is now removed as it is not working well when we allow import of multiple well path files.
This commit is contained in:
1 parent
b8566b7761
commit
0228d14899
1 file changed
+4
-24
@@ -354,30 +354,10 @@ std::vector<RimWellPath*> RimWellPathCollection::readAndAddWellPaths( std::vecto
|
||||
|
||||
progress.setProgressDescription( QString( "Reading file %1" ).arg( wellPath->name() ) );
|
||||
|
||||
// If a well path with this name exists already, make it read the well path file. This is useful if a well log
|
||||
// file has been imported before a well path file containing the full geometry for the well path.
|
||||
// NB! Do not use tryFindMatchingWellPath(), as this function will remove the prefix and will return an false
|
||||
// match in many cases.
|
||||
auto* existingWellPath = dynamic_cast<RimFileWellPath*>( wellPathByName( wellPath->name() ) );
|
||||
if ( existingWellPath && !existingWellPath->filePath().endsWith( ".dev" ) )
|
||||
{
|
||||
existingWellPath->setFilepath( wellPath->filePath() );
|
||||
existingWellPath->setWellPathIndexInFile( wellPath->wellPathIndexInFile() );
|
||||
existingWellPath->readWellPathFile( nullptr, m_wellPathImporter.get(), true );
|
||||
|
||||
// Let name from well path file override name from well log file
|
||||
existingWellPath->setName( wellPath->name() );
|
||||
|
||||
m_mostRecentlyUpdatedWellPath = existingWellPath;
|
||||
delete wellPath;
|
||||
}
|
||||
else
|
||||
{
|
||||
wellPath->setWellPathColor( RiaColorTables::wellPathsPaletteColors().cycledColor3f( m_wellPaths.size() ) );
|
||||
wellPath->setUnitSystem( findUnitSystemForWellPath( wellPath ) );
|
||||
addWellPath( wellPath );
|
||||
addedWellPaths.push_back( wellPath );
|
||||
}
|
||||
wellPath->setWellPathColor( RiaColorTables::wellPathsPaletteColors().cycledColor3f( m_wellPaths.size() ) );
|
||||
wellPath->setUnitSystem( findUnitSystemForWellPath( wellPath ) );
|
||||
addWellPath( wellPath );
|
||||
addedWellPaths.push_back( wellPath );
|
||||
|
||||
progress.incrementProgress();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user