mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5273 Struct Grid: Add enum GridAxisType for IJK axis
This commit is contained in:
@@ -247,24 +247,22 @@ std::vector<RigConnection> RigCellFaceGeometryTools::computeOtherNncs( const Rig
|
||||
size_t ck = std::numeric_limits<size_t>::max();
|
||||
mainGrid->ijkFromCellIndex( candidateCellIndex, &ci, &cj, &ck );
|
||||
|
||||
if ( sourceCellFace == cvf::StructGridInterface::POS_I ||
|
||||
sourceCellFace == cvf::StructGridInterface::NEG_I )
|
||||
auto gridAxis = cvf::StructGridInterface::gridAxisFromFace( sourceCellFace );
|
||||
if ( gridAxis == cvf::StructGridInterface::GridAxisType::AXIS_I )
|
||||
{
|
||||
if ( ni != ci )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else if ( sourceCellFace == cvf::StructGridInterface::POS_J ||
|
||||
sourceCellFace == cvf::StructGridInterface::NEG_J )
|
||||
else if ( gridAxis == cvf::StructGridInterface::GridAxisType::AXIS_J )
|
||||
{
|
||||
if ( nj != cj )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else if ( sourceCellFace == cvf::StructGridInterface::POS_K ||
|
||||
sourceCellFace == cvf::StructGridInterface::NEG_K )
|
||||
else if ( gridAxis == cvf::StructGridInterface::GridAxisType::AXIS_K )
|
||||
{
|
||||
if ( nk != ck )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user