mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Store coarsening boxes in RigGridBase
Assign index to coarse cells back to coarse box they are a part of p4#: 21675
This commit is contained in:
@@ -540,12 +540,18 @@ public:
|
||||
hostCellJ.push_back(static_cast<qint32>(pj + 1)); // NB: 1-based index in Octave
|
||||
hostCellK.push_back(static_cast<qint32>(pk + 1)); // NB: 1-based index in Octave
|
||||
|
||||
// TODO: Handle coarse box concept
|
||||
coarseBoxIdx.push_back(-1);
|
||||
size_t coarseningIdx = globalCells[cIdx].coarseningBoxIndex();
|
||||
if (coarseningIdx != cvf::UNDEFINED_SIZE_T)
|
||||
{
|
||||
coarseBoxIdx.push_back(static_cast<qint32>(coarseningIdx));
|
||||
}
|
||||
else
|
||||
{
|
||||
coarseBoxIdx.push_back(-1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
static bool RiaGetActiveCellInfo_init = RiaSocketCommandFactory::instance()->registerCreator<RiaGetActiveCellInfo>(RiaGetActiveCellInfo::commandName());
|
||||
|
||||
Reference in New Issue
Block a user