mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05:00
#3549 Temporary LGR : Make sure size of depth properties is at least active cell count
This commit is contained in:
1 parent
6f6f45df26
commit
58655c481e
1 file changed
+11
@@ -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++)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user