[cig-commits] r18118 - short/3D/PyLith/trunk/libsrc/topology

brad at geodynamics.org brad at geodynamics.org
Wed Mar 16 14:18:25 PDT 2011


Author: brad
Date: 2011-03-16 14:18:25 -0700 (Wed, 16 Mar 2011)
New Revision: 18118

Modified:
   short/3D/PyLith/trunk/libsrc/topology/CellRefinerHex8.cc
Log:
Fixed bug in hex8 refinement.

Modified: short/3D/PyLith/trunk/libsrc/topology/CellRefinerHex8.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/topology/CellRefinerHex8.cc	2011-03-16 03:14:40 UTC (rev 18117)
+++ short/3D/PyLith/trunk/libsrc/topology/CellRefinerHex8.cc	2011-03-16 21:18:25 UTC (rev 18118)
@@ -1115,7 +1115,7 @@
   const int numEdgesQuad12 = 12;
   const int numFacesQuad12 = 3;
   const int numNewCells = 4;
-  const int numNewVertices = 14;
+  const int numNewVertices = 15;
 
   int numEdges = 0;
   const EdgeType *edges;
@@ -1142,6 +1142,7 @@
     } // if
     newVertices[iNewVertex++] = _faceToVertex[faces[iFace]];
   } // for
+  assert(numNewVertices == iNewVertex);
 
   // new cell 0
   _cells[0*12+ 0] = cone[0] + coneVertexOffsetNormal;



More information about the CIG-COMMITS mailing list