mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2224 Well Formations: Make Reloading the csv file work
This commit is contained in:
@@ -508,7 +508,7 @@ RimWellPath* RimWellPathCollection::newestAddedWellPath()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellPathCollection::readWellPathFormationFiles()
|
||||
{
|
||||
caf::ProgressInfo progress(wellPaths.size(), "Reading well path formations from file");
|
||||
caf::ProgressInfo progress(wellPaths.size(), "Reading well picks from file");
|
||||
|
||||
for (size_t wpIdx = 0; wpIdx < wellPaths.size(); wpIdx++)
|
||||
{
|
||||
@@ -525,6 +525,28 @@ void RimWellPathCollection::readWellPathFormationFiles()
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellPathCollection::reloadAllWellPathFormations()
|
||||
{
|
||||
caf::ProgressInfo progress(wellPaths.size(), "Reloading well picks from file");
|
||||
|
||||
for (size_t wpIdx = 0; wpIdx < wellPaths.size(); wpIdx++)
|
||||
{
|
||||
QString errorMessage;
|
||||
if (!wellPaths[wpIdx]->reloadWellPathFormationsFile(&errorMessage, m_wellPathFormationsImporter))
|
||||
{
|
||||
QMessageBox::warning(RiuMainWindow::instance(),
|
||||
"File open error",
|
||||
errorMessage);
|
||||
}
|
||||
|
||||
progress.setProgressDescription(QString("Reloading formation file %1").arg(wpIdx));
|
||||
progress.incrementProgress();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user