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

brad at geodynamics.org brad at geodynamics.org
Sat May 9 17:01:17 PDT 2009


Author: brad
Date: 2009-05-09 17:01:16 -0700 (Sat, 09 May 2009)
New Revision: 14950

Modified:
   short/3D/PyLith/trunk/pylith/perf/Memory.py
Log:
Fixed compatibility bugs.

Modified: short/3D/PyLith/trunk/pylith/perf/Memory.py
===================================================================
--- short/3D/PyLith/trunk/pylith/perf/Memory.py	2009-05-09 23:30:26 UTC (rev 14949)
+++ short/3D/PyLith/trunk/pylith/perf/Memory.py	2009-05-10 00:01:16 UTC (rev 14950)
@@ -1,4 +1,4 @@
-class Memory():
+class Memory(object):
   sizeInt    = 4
   sizeDouble = 8
   import distutils.sysconfig
@@ -7,6 +7,8 @@
     sizeArrow = 40 # 32 bit
   elif pointerSize == 8:
     sizeArrow = 56 # 64 bit
+  elif pointerSize is None:
+    sizeArrow = 0 # Use 0 if can't get estimate of pointer size.
   else:
     raise RuntimeError('Could not determine the size of a pointer')
 



More information about the CIG-COMMITS mailing list