Improved progress bar a bit, for geomech cases

This commit is contained in:
Jacob Støren
2015-05-29 12:14:40 +02:00
parent a338c6abda
commit ca6d9d364d
3 changed files with 13 additions and 3 deletions

View File

@@ -29,6 +29,8 @@
#include "RigStatisticsDataCache.h"
#include <cmath>
#include "cvfBoundingBox.h"
#include "cafProgressInfo.h"
#include "..\src\corelib\tools\qstring.h"
//--------------------------------------------------------------------------------------------------
///
@@ -77,8 +79,13 @@ bool RigGeoMechCaseData::openAndReadFemParts()
{
m_femParts = new RigFemPartCollection();
caf::ProgressInfo progress(10, ""); // Here because the next call uses progress
progress.setNextProgressIncrement(9);
if (m_readerInterface->readFemParts(m_femParts.p()))
{
progress.incrementProgress();
progress.setProgressDescription("Calculating element neighbors");
// Initialize results containers
m_femPartResults.resize(m_femParts->partCount());
std::vector<std::string> stepNames = m_readerInterface->stepNames();