mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added support for building of metadata from existing time steps
Improved statistics calculation for opening single time step files Close all dynamic access files when a time step statistics is complete p4#: 20756
This commit is contained in:
@@ -55,6 +55,7 @@
|
||||
#include "RimUiTreeModelPdm.h"
|
||||
#include "RiaImageCompareReporter.h"
|
||||
#include "RiaImageFileCompare.h"
|
||||
#include "cafProgressInfo.h"
|
||||
|
||||
namespace caf
|
||||
{
|
||||
@@ -1305,7 +1306,7 @@ bool RIApplication::addEclipseCases(const QStringList& fileNames)
|
||||
// First file is read completely including grid.
|
||||
// The main grid from the first case is reused directly in for the other cases.
|
||||
// When reading active cell info, only the total cell count is tested for consistency
|
||||
RigMainGrid* mainGrid = NULL;
|
||||
RigEclipseCase* mainEclipseCase = NULL;
|
||||
|
||||
{
|
||||
QString firstFileName = fileNames[0];
|
||||
@@ -1328,9 +1329,11 @@ bool RIApplication::addEclipseCases(const QStringList& fileNames)
|
||||
|
||||
m_project->moveEclipseCaseIntoCaseGroup(rimResultReservoir);
|
||||
|
||||
mainGrid = rimResultReservoir->reservoirData()->mainGrid();
|
||||
mainEclipseCase = rimResultReservoir->reservoirData();
|
||||
}
|
||||
|
||||
caf::ProgressInfo info(fileNames.size(), "Reading Active Cell data");
|
||||
|
||||
for (int i = 1; i < fileNames.size(); i++)
|
||||
{
|
||||
QString fileName = fileNames[i];
|
||||
@@ -1346,12 +1349,14 @@ bool RIApplication::addEclipseCases(const QStringList& fileNames)
|
||||
|
||||
m_project->reservoirs.push_back(rimResultReservoir);
|
||||
|
||||
if (!rimResultReservoir->openAndReadActiveCellData(mainGrid))
|
||||
if (!rimResultReservoir->openAndReadActiveCellData(mainEclipseCase))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
m_project->moveEclipseCaseIntoCaseGroup(rimResultReservoir);
|
||||
|
||||
info.setProgress(i);
|
||||
}
|
||||
|
||||
onProjectOpenedOrClosed();
|
||||
|
||||
Reference in New Issue
Block a user