2012-05-18 02:45:23 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2011-2012 Statoil ASA, Ceetron AS
|
|
|
|
//
|
|
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2012-06-26 09:10:41 -05:00
|
|
|
#include "RifEclipseRestartDataAccess.h"
|
2012-05-18 02:45:23 -05:00
|
|
|
|
2012-06-26 09:10:41 -05:00
|
|
|
class RifEclipseOutputFileTools;
|
2012-05-18 02:45:23 -05:00
|
|
|
|
|
|
|
#include "well_info.h"
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
//
|
|
|
|
// Class for access to results from a unified restart file
|
|
|
|
//
|
|
|
|
//==================================================================================================
|
2012-06-26 09:10:41 -05:00
|
|
|
class RifEclipseUnifiedRestartFileAccess : public RifEclipseRestartDataAccess
|
2012-05-18 02:45:23 -05:00
|
|
|
{
|
|
|
|
public:
|
2012-06-26 09:10:41 -05:00
|
|
|
RifEclipseUnifiedRestartFileAccess(size_t numGrids, size_t numActiveCells);
|
|
|
|
virtual ~RifEclipseUnifiedRestartFileAccess();
|
2012-05-18 02:45:23 -05:00
|
|
|
|
|
|
|
bool open(const QStringList& fileSet);
|
|
|
|
void close();
|
|
|
|
|
|
|
|
size_t numTimeSteps();
|
|
|
|
QStringList timeStepsText();
|
|
|
|
QList<QDateTime> timeSteps();
|
|
|
|
|
|
|
|
QStringList resultNames();
|
|
|
|
bool results(const QString& resultName, size_t timeStep, std::vector<double>* values);
|
|
|
|
|
|
|
|
virtual void readWellData(well_info_type * well_info);
|
|
|
|
|
|
|
|
private:
|
2012-06-26 09:10:41 -05:00
|
|
|
cvf::ref<RifEclipseOutputFileTools> m_file;
|
2012-05-18 02:45:23 -05:00
|
|
|
};
|