[MOAB-dev] r5042 - MOAB/trunk/tools/vtkMOABReader

iulian at mcs.anl.gov iulian at mcs.anl.gov
Thu Jun 30 17:31:50 CDT 2011


Author: iulian
Date: 2011-06-30 17:31:50 -0500 (Thu, 30 Jun 2011)
New Revision: 5042

Modified:
   MOAB/trunk/tools/vtkMOABReader/vtkMOABReader.cxx
Log:
with this change, loading the file MOAB/MeshFiles/unittest/3k-tri-cube.h5m 
will not result in an abort of paraview.
This file has a set of geom dimension -1, which is probably wrong. 


Modified: MOAB/trunk/tools/vtkMOABReader/vtkMOABReader.cxx
===================================================================
--- MOAB/trunk/tools/vtkMOABReader/vtkMOABReader.cxx	2011-06-29 21:30:53 UTC (rev 5041)
+++ MOAB/trunk/tools/vtkMOABReader/vtkMOABReader.cxx	2011-06-30 22:31:50 UTC (rev 5042)
@@ -1217,11 +1217,11 @@
   
     // geom id
   static const char *lnames[] = {"Vertex", "Curve", "Surface", "Volume"};
-  if (gidTag) {
+  if (gdimTag) {
     int gdim;
     rval = mbImpl->tag_get_data(gdimTag, &eset, 1, &gdim);
-    if (MB_SUCCESS == rval) {
-      assert(0 <= gdim && gdim <= 3);
+    if (MB_SUCCESS == rval && (0 <= gdim && gdim <= 3) ) {
+      //assert(0 <= gdim && gdim <= 3);
       os << lnames[gdim] << id << '\0';
       cat_name = os.str();
       return MB_SUCCESS;


































More information about the moab-dev mailing list