mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-09 15:43:07 -06:00
#3549 Temporary LGR : Make sure size of depth properties is at least active cell count
This commit is contained in:
parent
6f6f45df26
commit
58655c481e
@ -1581,6 +1581,17 @@ void RigCaseCellResultsData::computeDepthRelatedResults()
|
||||
std::vector<std::vector<double>>& tops = this->cellScalarResults(topsResultGridIndex);
|
||||
std::vector<std::vector<double>>& bottom = this->cellScalarResults(bottomResultGridIndex);
|
||||
|
||||
// Make sure the size is at least active cells
|
||||
{
|
||||
size_t actCellCount = activeCellInfo()->reservoirActiveCellCount();
|
||||
if (depth[0].size() < actCellCount) depth[0].resize(actCellCount, std::numeric_limits<double>::max());
|
||||
if (dx[0].size() < actCellCount) dx[0].resize(actCellCount, std::numeric_limits<double>::max());
|
||||
if (dy[0].size() < actCellCount) dy[0].resize(actCellCount, std::numeric_limits<double>::max());
|
||||
if (dz[0].size() < actCellCount) dz[0].resize(actCellCount, std::numeric_limits<double>::max());
|
||||
if (tops[0].size() < actCellCount) tops[0].resize(actCellCount, std::numeric_limits<double>::max());
|
||||
if (bottom[0].size() < actCellCount) bottom[0].resize(actCellCount, std::numeric_limits<double>::max());
|
||||
}
|
||||
|
||||
size_t cellIdx = 0;
|
||||
for (cellIdx = 0; cellIdx < m_ownerMainGrid->globalCellArray().size(); cellIdx++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user