mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Performance: Control how much data to import from file
User can control if faults, NNCs and simulation wells are to be imported from file.
This commit is contained in:
@@ -18,6 +18,8 @@
|
||||
|
||||
#include "RimCase.h"
|
||||
|
||||
#include "RiaApplication.h"
|
||||
#include "RiaPreferences.h"
|
||||
#include "RigCaseCellResultsData.h"
|
||||
#include "RigCaseData.h"
|
||||
#include "RimCaseCollection.h"
|
||||
@@ -298,9 +300,13 @@ void RimCase::computeCachedData()
|
||||
rigEclipseCase->mainGrid()->computeCachedData();
|
||||
pInf.incrementProgress();
|
||||
|
||||
pInf.setProgressDescription("Calculating faults");
|
||||
rigEclipseCase->mainGrid()->calculateFaults();
|
||||
pInf.incrementProgress();
|
||||
RiaPreferences* prefs = RiaApplication::instance()->preferences();
|
||||
if (prefs->autocomputeGridFaults)
|
||||
{
|
||||
pInf.setProgressDescription("Calculating faults");
|
||||
rigEclipseCase->mainGrid()->calculateFaults();
|
||||
pInf.incrementProgress();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user