mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4281 Saturation pressure plots : Delay loading of EQUIL until required
This commit is contained in:
@@ -28,6 +28,8 @@
|
||||
|
||||
#include "CompletionExportCommands/RicWellPathExportCompletionDataFeatureImpl.h"
|
||||
|
||||
#include "RifReaderSettings.h"
|
||||
|
||||
#include "RigActiveCellInfo.h"
|
||||
#include "RigCaseCellResultsData.h"
|
||||
#include "RigEclipseCaseData.h"
|
||||
@@ -63,6 +65,9 @@
|
||||
#include "cafPdmUiTreeOrdering.h"
|
||||
#include "cafProgressInfo.h"
|
||||
|
||||
#include "cafUtils.h"
|
||||
#include <QFileInfo>
|
||||
|
||||
CAF_PDM_XML_ABSTRACT_SOURCE_INIT(RimEclipseCase, "RimReservoir");
|
||||
|
||||
//------------------------------------------------------------------------------------------------
|
||||
@@ -154,6 +159,33 @@ const RigEclipseCaseData* RimEclipseCase::eclipseCaseData() const
|
||||
return m_rigEclipseCase.p();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEclipseCase::ensureDeckIsParsedForEquilData()
|
||||
{
|
||||
if (m_rigEclipseCase.notNull())
|
||||
{
|
||||
QString includeFileAbsolutePathPrefix;
|
||||
{
|
||||
RiaPreferences* prefs = RiaApplication::instance()->preferences();
|
||||
if (prefs->readerSettings())
|
||||
{
|
||||
includeFileAbsolutePathPrefix = prefs->readerSettings()->faultIncludeFileAbsolutePathPrefix();
|
||||
}
|
||||
}
|
||||
|
||||
QString dataDeckFile;
|
||||
{
|
||||
QFileInfo fi(gridFileName());
|
||||
|
||||
dataDeckFile = caf::Utils::constructFullFileName(fi.absolutePath(), fi.baseName(), ".DATA");
|
||||
}
|
||||
|
||||
m_rigEclipseCase->ensureDeckIsParsedForEquilData(dataDeckFile, includeFileAbsolutePathPrefix);
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -518,7 +550,7 @@ void RimEclipseCase::computeCachedData()
|
||||
if (rigEclipseCase)
|
||||
{
|
||||
caf::ProgressInfo pInf(30, "");
|
||||
|
||||
|
||||
{
|
||||
auto task = pInf.task("", 1);
|
||||
rigEclipseCase->computeActiveCellBoundingBoxes();
|
||||
|
||||
Reference in New Issue
Block a user