mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2221 Well Path Formation names: Add logging on import and well creation/matching
This commit is contained in:
parent
63489ba91b
commit
bc026da2f6
@ -18,6 +18,8 @@
|
||||
|
||||
#include "RifWellPathFormationReader.h"
|
||||
|
||||
#include "RiaLogging.h"
|
||||
|
||||
#include <QFile>
|
||||
#include <QStringList>
|
||||
|
||||
@ -32,6 +34,10 @@ std::map<QString, cvf::ref<RigWellPathFormations>>
|
||||
std::map<QString, std::vector<std::pair<double, QString>>> formations;
|
||||
|
||||
readFileIntoMap(filePath, &formations);
|
||||
if (formations.empty())
|
||||
{
|
||||
RiaLogging::error(QString("Failed to parse %1 as well path formations").arg(filePath));
|
||||
}
|
||||
|
||||
std::map<QString, std::vector<std::pair<double, QString>>>::iterator it;
|
||||
|
||||
|
@ -22,6 +22,7 @@
|
||||
|
||||
#include "RiaApplication.h"
|
||||
#include "RiaColorTables.h"
|
||||
#include "RiaLogging.h"
|
||||
#include "RiaPreferences.h"
|
||||
#include "RiaWellNameComparer.h"
|
||||
|
||||
@ -348,6 +349,7 @@ void RimWellPathCollection::addWellPathFormations(const QStringList& filePaths)
|
||||
}
|
||||
wellPath->setFormationsGeometry(it->second);
|
||||
m_newestAddedWellPath = wellPath;
|
||||
RiaLogging::info(QString("Well path formations set for well %1").arg(wellPath->name()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user