#2227 Well formations: New Rig data stucture with top+base MD and level

This commit is contained in:
Rebecca Cox
2017-12-08 09:27:30 +01:00
parent 04e5ccfd7e
commit a2d2879bab
6 changed files with 123 additions and 48 deletions

View File

@@ -337,6 +337,8 @@ void RimWellPathCollection::addWellPathFormations(const QStringList& filePaths)
outputMessage += "-----------------------------------------------\n";
outputMessage += "Well Name \tDetected Well Path \tCount\n";
bool fileReadSuccess = false;
for (QString filePath : filePaths)
{
std::map<QString, cvf::ref<RigWellPathFormations>> newFormations =
@@ -344,6 +346,8 @@ void RimWellPathCollection::addWellPathFormations(const QStringList& filePaths)
for (auto it = newFormations.begin(); it != newFormations.end(); it++)
{
fileReadSuccess = true;
RimWellPath* wellPath = tryFindMatchingWellPath(it->first);
if (!wellPath)
{
@@ -364,8 +368,12 @@ void RimWellPathCollection::addWellPathFormations(const QStringList& filePaths)
}
}
outputMessage += "-----------------------------------------------";
QMessageBox::information(RiuMainWindow::instance(), "Well Picks Import", outputMessage);
RiaLogging::info(outputMessage);
if (fileReadSuccess)
{
QMessageBox::information(RiuMainWindow::instance(), "Well Picks Import", outputMessage);
RiaLogging::info(outputMessage);
}
this->sortWellsByName();
}