[cig-commits] r20029 - short/3D/PyLith/branches/v1.7-trunk/libsrc/pylith/meshio

brad at geodynamics.org brad at geodynamics.org
Thu May 3 11:42:25 PDT 2012


Author: brad
Date: 2012-05-03 11:42:25 -0700 (Thu, 03 May 2012)
New Revision: 20029

Modified:
   short/3D/PyLith/branches/v1.7-trunk/libsrc/pylith/meshio/Xdmf.cc
Log:
Added cell type for unconnected points to Xdmf.

Modified: short/3D/PyLith/branches/v1.7-trunk/libsrc/pylith/meshio/Xdmf.cc
===================================================================
--- short/3D/PyLith/branches/v1.7-trunk/libsrc/pylith/meshio/Xdmf.cc	2012-05-03 16:21:15 UTC (rev 20028)
+++ short/3D/PyLith/branches/v1.7-trunk/libsrc/pylith/meshio/Xdmf.cc	2012-05-03 18:42:25 UTC (rev 20029)
@@ -89,7 +89,9 @@
   int cellDim = 0;
   h5.readAttribute("/topology/cells", "cell_dim", (void*)&cellDim, 
 		  H5T_NATIVE_INT);
-  if (1 == cellDim && 2 == numCorners)
+  if (0 == cellDim && 1 == numCorners)
+    cellType = "Polyvertex";
+  else if (1 == cellDim && 2 == numCorners)
     cellType = "Polyline";
   else if (2 == cellDim && 3 == numCorners)
     cellType = "Triangle";



More information about the CIG-COMMITS mailing list