mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 00:42:12 -05:00
MswRollUp: Made neighbour calculations handle cells on edge
This is an intermediate commit and does not compile p4#: 22219
This commit is contained in:
1 parent
42408eda74
commit
9f2bc4f1d0
2 files changed
+12
-7
No files matched your search
@@ -160,11 +160,11 @@ void StructGridInterface::neighborIJKAtCellFace(size_t i, size_t j, size_t k, Fa
|
||||
switch (face)
|
||||
{
|
||||
case POS_I : (*ni)++; break;
|
||||
case NEG_I : (*ni)--; break;
|
||||
case NEG_I : if (i > 0) (*ni)--; else (*ni) = cvf::UNDEFINED_SIZE_T; break;
|
||||
case POS_J : (*nj)++; break;
|
||||
case NEG_J : (*nj)--; break;
|
||||
case NEG_J : if (i > 0) (*nj)--; else (*nj) = cvf::UNDEFINED_SIZE_T; break;
|
||||
case POS_K : (*nk)++; break;
|
||||
case NEG_K : (*nk)--; break;
|
||||
case NEG_K : if (i > 0) (*nj)--; else (*nj) = cvf::UNDEFINED_SIZE_T; break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user