[MOAB-dev] r3712 - MOAB/trunk/src

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Thu Mar 25 16:43:10 CDT 2010


Author: kraftche
Date: 2010-03-25 16:43:10 -0500 (Thu, 25 Mar 2010)
New Revision: 3712

Modified:
   MOAB/trunk/src/BitTagServer.cpp
Log:
fix bug reporting memory use for bit tags

Modified: MOAB/trunk/src/BitTagServer.cpp
===================================================================
--- MOAB/trunk/src/BitTagServer.cpp	2010-03-25 19:42:02 UTC (rev 3711)
+++ MOAB/trunk/src/BitTagServer.cpp	2010-03-25 21:43:10 UTC (rev 3712)
@@ -435,9 +435,10 @@
 }
 
 ErrorCode BitTag::get_memory_use( unsigned long& total,
-                                    unsigned long& per_entity ) const
+                                  unsigned long& per_entity ) const
 {
   per_entity = (storedBitsPerEntity > 4); // cannot return fraction of bytes, so round
+  total = 0;
   for (EntityType t = (EntityType)0; t < MBMAXTYPE; ++t) {
     total += pageList[t].capacity() * sizeof(BitPage*);
     for (size_t i = 0; i < pageList[t].size(); ++i)



More information about the moab-dev mailing list