[cig-commits] r18950 - short/3D/PyLith/trunk/pylith/perf
brad at geodynamics.org
brad at geodynamics.org
Tue Sep 20 12:45:56 PDT 2011
Author: brad
Date: 2011-09-20 12:45:56 -0700 (Tue, 20 Sep 2011)
New Revision: 18950
Modified:
short/3D/PyLith/trunk/pylith/perf/Memory.py
Log:
Updated for relocation of sizeofVoidPtr (petsc_general.i -> pylith_general.i).
Modified: short/3D/PyLith/trunk/pylith/perf/Memory.py
===================================================================
--- short/3D/PyLith/trunk/pylith/perf/Memory.py 2011-09-20 16:36:13 UTC (rev 18949)
+++ short/3D/PyLith/trunk/pylith/perf/Memory.py 2011-09-20 19:45:56 UTC (rev 18950)
@@ -20,7 +20,7 @@
##
## @brief Python object for calculating memory usage.
-import pylith.utils.petsc as petsc
+from pylith.utils.utils import sizeofVoidPtr
class Memory(object):
sizeInt = 4
@@ -33,7 +33,7 @@
if pointerSize is None:
# Get pointer using sizeof(void*) in PyLith C++ library.
- pointerSize = petsc.sizeofVoidPtr()
+ pointerSize = sizeofVoidPtr()
if pointerSize == 4:
sizeSetEntry = 12
More information about the CIG-COMMITS
mailing list