From d6f9aa13a4b37417e90c03c7356000e7651ceb02 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 27 Aug 2013 08:02:47 +0200 Subject: [PATCH] Fixed mixup of ijk variables p4#: 22232 --- CommonCode/cvfStructGrid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CommonCode/cvfStructGrid.cpp b/CommonCode/cvfStructGrid.cpp index b9cc9d35fb..6788a8982e 100644 --- a/CommonCode/cvfStructGrid.cpp +++ b/CommonCode/cvfStructGrid.cpp @@ -162,9 +162,9 @@ void StructGridInterface::neighborIJKAtCellFace(size_t i, size_t j, size_t k, Fa case POS_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 : if (i > 0) (*nj)--; else (*nj) = cvf::UNDEFINED_SIZE_T; break; + case NEG_J : if (j > 0) (*nj)--; else (*nj) = cvf::UNDEFINED_SIZE_T; break; case POS_K : (*nk)++; break; - case NEG_K : if (i > 0) (*nj)--; else (*nj) = cvf::UNDEFINED_SIZE_T; break; + case NEG_K : if (k > 0) (*nk)--; else (*nk) = cvf::UNDEFINED_SIZE_T; break; } }