[MOAB-dev] r5724 - MOAB/trunk/src

iulian at mcs.anl.gov iulian at mcs.anl.gov
Thu Aug 30 17:48:21 CDT 2012


Author: iulian
Date: 2012-08-30 17:48:21 -0500 (Thu, 30 Aug 2012)
New Revision: 5724

Modified:
   MOAB/trunk/src/ScdInterface.cpp
Log:
the edges and faces adjacent can be on topmost or rightmost boundary
i, j and k should be allowed to get to their max values


Modified: MOAB/trunk/src/ScdInterface.cpp
===================================================================
--- MOAB/trunk/src/ScdInterface.cpp	2012-08-30 19:14:08 UTC (rev 5723)
+++ MOAB/trunk/src/ScdInterface.cpp	2012-08-30 22:48:21 UTC (rev 5724)
@@ -511,11 +511,11 @@
   if (dim < 1 || dim > 2 || i < boxDims[0] || j < boxDims[1] || k < boxDims[2]) 
     return MB_FAILURE;
 
-    // now check upper bound; parameters must be < upper corner, since edges/faces
+    // now check upper bound; parameters must be <= upper corner, since edges/faces
     // follow element parameterization, not vertex parameterization
-  else if ((boxDims[3] != boxDims[0] && i > (locallyPeriodic[0] ? boxDims[3] : boxDims[3]-1)) ||
-           (boxDims[4] != boxDims[1] && j > (locallyPeriodic[1] ? boxDims[4] : boxDims[4]-1)) ||
-           (boxDims[5] != boxDims[2] && k >= boxDims[5])) return MB_FAILURE;
+  else if ((boxDims[3] != boxDims[0] && i > (locallyPeriodic[0] ? boxDims[3]+1 : boxDims[3])) ||
+           (boxDims[4] != boxDims[1] && j > (locallyPeriodic[1] ? boxDims[4]+1 : boxDims[4])) ||
+           (boxDims[5] != boxDims[2] && k > boxDims[5])) return MB_FAILURE;
 
         // get the vertices making up this entity
   EntityHandle verts[4];



More information about the moab-dev mailing list