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:
Magne Sjaastad
2013-05-21 11:10:59 +02:00
parent d6560d017e
commit eff924c630
8 changed files with 99 additions and 13 deletions

View File

@@ -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());