mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
pre-proto - Rename progrss indicator and update to range-based for-loop
This commit is contained in:
parent
f24b5ff084
commit
4a2bf34ec1
@ -54,11 +54,10 @@ RifEclipseExportTools::~RifEclipseExportTools()
|
||||
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RifEclipseExportTools::writeFracturesToTextFile(const QString& fileName, const std::vector<RimFracture*>& fractures)
|
||||
bool RifEclipseExportTools::writeFracturesToTextFile(const QString& fileName, const std::vector< RimFracture*>& fractures)
|
||||
{
|
||||
|
||||
QFile file(fileName);
|
||||
@ -74,15 +73,14 @@ bool RifEclipseExportTools::writeFracturesToTextFile(const QString& fileName, co
|
||||
|
||||
caf::ProgressInfo pi(fractures.size(), QString("Writing data to file %1").arg(fileName));
|
||||
|
||||
RimFracture* fracture;
|
||||
RimEclipseWell* simWell = nullptr;
|
||||
RimWellPath* wellPath = nullptr;
|
||||
|
||||
size_t i;
|
||||
size_t progress =0;
|
||||
std::vector<size_t> ijk;
|
||||
for (i = 0; i < fractures.size(); i++)
|
||||
|
||||
for (RimFracture* fracture : fractures)
|
||||
{
|
||||
fracture = fractures.at(i);
|
||||
fracture->computeTransmissibility();
|
||||
std::vector<RigFractureData> fracDataVector = fracture->attachedRigFracture()->fractureData();
|
||||
|
||||
@ -147,10 +145,9 @@ bool RifEclipseExportTools::writeFracturesToTextFile(const QString& fileName, co
|
||||
out << "/" << "\n";
|
||||
}
|
||||
|
||||
pi.setProgress(i);
|
||||
progress++;
|
||||
pi.setProgress(progress);
|
||||
}
|
||||
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user