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

tautges at mcs.anl.gov tautges at mcs.anl.gov
Tue Sep 6 12:40:26 CDT 2011


Author: tautges
Date: 2011-09-06 12:40:26 -0500 (Tue, 06 Sep 2011)
New Revision: 5152

Modified:
   MOAB/trunk/src/ScdInterface.cpp
Log:
Fixing small error in structured mesh partition stuff.



Modified: MOAB/trunk/src/ScdInterface.cpp
===================================================================
--- MOAB/trunk/src/ScdInterface.cpp	2011-09-04 05:46:55 UTC (rev 5151)
+++ MOAB/trunk/src/ScdInterface.cpp	2011-09-06 17:40:26 UTC (rev 5152)
@@ -791,13 +791,13 @@
       facedims[3] = facedims[0];
       rdims[3] = rdims[0];
       rdims[0] -= di;
-      if (pto < iextra) rdims[0]--;
+      if (pto%pi < iextra) rdims[0]--;
     }
     else {
       facedims[0] = facedims[3];
       rdims[0] = rdims[3];
       rdims[3] += di;
-      if (pto < iextra) rdims[3]++;
+      if (pto%pi < iextra) rdims[3]++;
     }
   }
   if (0 != dijk[1]) {
@@ -807,13 +807,13 @@
       facedims[4] = facedims[1];
       rdims[4] = rdims[1];
       rdims[1] -= dj;
-      if (pto < jextra) rdims[1]--;
+      if (pto/pi < jextra) rdims[1]--;
     }
     else {
       facedims[1] = facedims[4];
       rdims[1] = rdims[4];
       rdims[4] += dj;
-      if (pto < jextra) rdims[4]++;
+      if (pto/pi < jextra) rdims[4]++;
     }
   }
 
@@ -875,13 +875,13 @@
       facedims[4] = facedims[1];
       rdims[4] = rdims[1];
       rdims[1] -= dj;
-      if (pto < jextra) rdims[1]--;
+      if (pto%pj < jextra) rdims[1]--;
     }
     else {
       facedims[1] = facedims[4];
       rdims[1] = rdims[4];
       rdims[4] += dj;
-      if (pto < jextra) rdims[4]++;
+      if (pto%pj < jextra) rdims[4]++;
     }
   }


More information about the moab-dev mailing list