[MOAB-dev] r1583 - MOAB/trunk

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Mon Feb 4 15:31:13 CST 2008


Author: kraftche
Date: 2008-02-04 15:31:13 -0600 (Mon, 04 Feb 2008)
New Revision: 1583

Modified:
   MOAB/trunk/WriteVtk.cpp
Log:
skip variable-length tags when writing VTK files

Modified: MOAB/trunk/WriteVtk.cpp
===================================================================
--- MOAB/trunk/WriteVtk.cpp	2008-02-04 21:30:50 UTC (rev 1582)
+++ MOAB/trunk/WriteVtk.cpp	2008-02-04 21:31:13 UTC (rev 1583)
@@ -359,6 +359,11 @@
       return rval;
     if (type == MB_TYPE_HANDLE)
       continue;
+      
+      // Skip variable-length tags -- not supported by VTK format
+    int size;
+    if (MB_VARIABLE_DATA_LENGTH == mbImpl->tag_get_size( *i, size ))
+      continue;    
     
       // Get subset of input entities that have the tag set
     MBRange tagged;




More information about the moab-dev mailing list