mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-10 08:03:05 -06:00
#273 Added some comments
This commit is contained in:
parent
5d0c0cdc67
commit
37099929d6
@ -228,11 +228,14 @@ void RigMainGrid::calculateFaults()
|
||||
m_faults[fIdx]->accumulateFaultsPrCell(m_faultsPrCellAcc.p(), static_cast<int>(fIdx));
|
||||
}
|
||||
|
||||
// Find the geometrical faults that is in addition
|
||||
// Find the geometrical faults that is in addition: Has no user defined (eclipse) fault assigned.
|
||||
// Separate the grid faults that has an inactive cell as member
|
||||
|
||||
RigFault * unNamedFault = new RigFault;
|
||||
int unNamedFaultIdx = static_cast<int>(m_faults.size());
|
||||
|
||||
const std::vector<cvf::Vec3d>& vxs = m_mainGrid->nodes();
|
||||
|
||||
for (int gcIdx = 0 ; gcIdx < static_cast<int>(m_cells.size()); ++gcIdx)
|
||||
{
|
||||
if ( m_cells[gcIdx].isInvalid())
|
||||
@ -250,6 +253,8 @@ void RigMainGrid::calculateFaults()
|
||||
{
|
||||
cvf::StructGridInterface::FaceType face = cvf::StructGridInterface::FaceType(faceIdx);
|
||||
|
||||
// For faces that has no used defined Fault assigned:
|
||||
|
||||
if (m_faultsPrCellAcc->faultIdx(gcIdx, face) == RigFaultsPrCellAccumulator::NO_FAULT)
|
||||
{
|
||||
// Find neighbor cell
|
||||
@ -279,7 +284,6 @@ void RigMainGrid::calculateFaults()
|
||||
caf::SizeTArray4 nbFaceIdxs;
|
||||
m_cells[neighborReservoirCellIdx].faceIndices(StructGridInterface::oppositeFace(face), &nbFaceIdxs);
|
||||
|
||||
const std::vector<cvf::Vec3d>& vxs = m_mainGrid->nodes();
|
||||
|
||||
bool sharedFaceVertices = true;
|
||||
if (sharedFaceVertices && vxs[faceIdxs[0]].pointDistance(vxs[nbFaceIdxs[0]]) > tolerance ) sharedFaceVertices = false;
|
||||
|
@ -74,7 +74,6 @@ public:
|
||||
private:
|
||||
void initAllSubGridsParentGridPointer();
|
||||
void initAllSubCellsMainGridCellIndex();
|
||||
void computeActiveAndValidCellRanges();
|
||||
void buildCellSearchTree();
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user