[cig-commits] r14927 - short/3D/PyLith/trunk/pylith/perf

knepley at geodynamics.org knepley at geodynamics.org
Fri May 8 11:33:11 PDT 2009


Author: knepley
Date: 2009-05-08 11:33:10 -0700 (Fri, 08 May 2009)
New Revision: 14927

Modified:
   short/3D/PyLith/trunk/pylith/perf/MemoryLogger.py
Log:
Small fix to MemoryLogger


Modified: short/3D/PyLith/trunk/pylith/perf/MemoryLogger.py
===================================================================
--- short/3D/PyLith/trunk/pylith/perf/MemoryLogger.py	2009-05-08 18:26:09 UTC (rev 14926)
+++ short/3D/PyLith/trunk/pylith/perf/MemoryLogger.py	2009-05-08 18:33:10 UTC (rev 14927)
@@ -103,12 +103,12 @@
       memory['mesh'] = info
       total += sum(info.values())
     # groups
-    if hasattr(self, 'groups'):
+    if hasattr(self, 'vertexGroups'):
       memory['groups'] = {}
-      for group in self.groups:
-        nbytes = group.tabulate(self.mesh)
+      for label,group in self.vertexGroups.iteritems():
+        nbytes = group.tabulate()
         total += nbytes
-        memory['groups'][group.label] = nbytes
+        memory['groups'][label] = nbytes
     # materials
     if hasattr(self, 'materials'):
       memory['materials'] = {}



More information about the CIG-COMMITS mailing list