Fixed issue related to reading data after close

p4#: 20647
This commit is contained in:
Magne Sjaastad 2013-02-27 14:30:32 +01:00
parent d628973f56
commit 3dc027e29e
2 changed files with 7 additions and 16 deletions

View File

@ -191,10 +191,15 @@ bool transferGridCellData(RigMainGrid* mainGrid, RigActiveCellInfo* activeCellIn
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
RifReaderEclipseOutput::RifReaderEclipseOutput() RifReaderEclipseOutput::RifReaderEclipseOutput()
{ {
m_fileName.clear();
m_fileSet.clear();
m_timeSteps.clear();
m_eclipseCase = NULL;
m_ecl_init_file = NULL; m_ecl_init_file = NULL;
m_dynamicResultsAccess = NULL; m_dynamicResultsAccess = NULL;
ground();
} }
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
@ -204,17 +209,6 @@ RifReaderEclipseOutput::~RifReaderEclipseOutput()
{ {
} }
//--------------------------------------------------------------------------------------------------
/// Ground members
//--------------------------------------------------------------------------------------------------
void RifReaderEclipseOutput::ground()
{
m_fileName.clear();
m_fileSet.clear();
m_timeSteps.clear();
m_eclipseCase = NULL;
}
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
/// Close interface (for now, no files are kept open after calling methods, so just clear members) /// Close interface (for now, no files are kept open after calling methods, so just clear members)
@ -231,8 +225,6 @@ void RifReaderEclipseOutput::close()
{ {
m_dynamicResultsAccess->close(); m_dynamicResultsAccess->close();
} }
ground();
} }
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------

View File

@ -53,7 +53,6 @@ public:
static bool transferGeometry(const ecl_grid_type* mainEclGrid, RigEclipseCase* eclipseCase); static bool transferGeometry(const ecl_grid_type* mainEclGrid, RigEclipseCase* eclipseCase);
private: private:
void ground();
bool readActiveCellInfo(); bool readActiveCellInfo();
bool buildMetaData(); bool buildMetaData();
void readWellCells(); void readWellCells();