mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2122 Formation/Well Path: Use reader in WellPath classes
This commit is contained in:
@@ -479,7 +479,11 @@ bool RiaApplication::loadProject(const QString& projectFileName, ProjectLoadActi
|
||||
oilField->wellPathCollection = new RimWellPathCollection();
|
||||
}
|
||||
|
||||
if (oilField->wellPathCollection) oilField->wellPathCollection->readWellPathFiles();
|
||||
if (oilField->wellPathCollection)
|
||||
{
|
||||
oilField->wellPathCollection->readWellPathFiles();
|
||||
oilField->wellPathCollection->readWellPathFormationFiles();
|
||||
}
|
||||
}
|
||||
|
||||
for (RimOilField* oilField: m_project->oilFields)
|
||||
@@ -778,6 +782,28 @@ void RiaApplication::addWellPathsToModel(QList<QString> wellPathFilePaths)
|
||||
oilField->wellPathCollection->updateConnectedEditors();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiaApplication::addWellPathFormationsToModel(QList<QString> wellPathFormationsFilePaths)
|
||||
{
|
||||
if (m_project == nullptr || m_project->oilFields.size() < 1) return;
|
||||
|
||||
RimOilField* oilField = m_project->activeOilField();
|
||||
if (oilField == nullptr) return;
|
||||
|
||||
if (oilField->wellPathCollection == nullptr)
|
||||
{
|
||||
oilField->wellPathCollection = new RimWellPathCollection();
|
||||
|
||||
m_project->updateConnectedEditors();
|
||||
}
|
||||
|
||||
if (oilField->wellPathCollection) oilField->wellPathCollection->addWellFormations(wellPathFormationsFilePaths);
|
||||
|
||||
oilField->wellPathCollection->updateConnectedEditors();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// Add a list of well log file paths (LAS files) to the well path collection
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user