[MOAB-dev] r3673 - MOAB/trunk/tools

tautges at mcs.anl.gov tautges at mcs.anl.gov
Thu Mar 18 16:55:20 CDT 2010


Author: tautges
Date: 2010-03-18 16:55:20 -0500 (Thu, 18 Mar 2010)
New Revision: 3673

Modified:
   MOAB/trunk/tools/size.cpp
Log:
Changing mbsize so it reports vertices too.




Modified: MOAB/trunk/tools/size.cpp
===================================================================
--- MOAB/trunk/tools/size.cpp	2010-03-18 20:36:37 UTC (rev 3672)
+++ MOAB/trunk/tools/size.cpp	2010-03-18 21:55:20 UTC (rev 3673)
@@ -186,7 +186,7 @@
   const char* edge_use_name = "1D Side";
   const char* vertex_name = "Vertex";
   
-  bool have_some = stats.edge_uses.count > 0;
+  bool have_some = stats.edge_uses.count > 0 || stats.nodes > 0;
   for (int i = 0; i < MBMAXTYPE; ++i)
     if (stats.stats[i].count > 0)
       have_some = true;
@@ -229,7 +229,7 @@
       total_log = tl;
   }
   
-  if (total_log > (int)total_width)
+  if (total_log > (int)total_width || total_log == -10000)
   {
     total_width = 8;
     total_prec = 2;
@@ -427,10 +427,6 @@
           continue;
         }
         
-          // skip vertices
-        if (0 == dim)
-          continue;
-        
         printf( "%s %d:\n", geom_type_names[dim], id );
         if (MB_SUCCESS != gather_set_stats( *i, file_stats ))
           fprintf(stderr, "Error processing mesh from file: %s\n", f->c_str());



More information about the moab-dev mailing list