Added grid collection and reuse of MainGrid if the grids are equal

p4#: 20517
This commit is contained in:
Magne Sjaastad
2013-02-14 13:16:56 +01:00
parent 46cb61e859
commit 8f50b90216
11 changed files with 114 additions and 38 deletions

View File

@@ -43,16 +43,9 @@ RigEclipseCase::~RigEclipseCase()
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RigEclipseCase::computeFaults()
void RigEclipseCase::setMainGrid(RigMainGrid* mainGrid)
{
std::vector<RigGridBase*> grids;
allGrids(&grids);
size_t i;
for (i = 0; i < grids.size(); i++)
{
grids[i]->computeFaults();
}
m_mainGrid = mainGrid;
}
//--------------------------------------------------------------------------------------------------
@@ -293,7 +286,6 @@ void RigEclipseCase::computeActiveCellData()
//--------------------------------------------------------------------------------------------------
void RigEclipseCase::computeCachedData()
{
computeFaults();
computeActiveCellData();
computeActiveCellsGeometryBoundingBox();
}
@@ -395,3 +387,4 @@ cvf::ref<cvf::StructGridScalarDataAccess> RigEclipseCase::dataAccessObject(const
return NULL;
}