[cig-commits] r15183 - in short/3D/PyLith/trunk: libsrc/problems pylith/perf
knepley at geodynamics.org
knepley at geodynamics.org
Wed Jun 10 14:55:03 PDT 2009
Author: knepley
Date: 2009-06-10 14:55:03 -0700 (Wed, 10 Jun 2009)
New Revision: 15183
Added:
short/3D/PyLith/trunk/pylith/perf/GlobalOrder.py
short/3D/PyLith/trunk/pylith/perf/Jacobian.py
Modified:
short/3D/PyLith/trunk/libsrc/problems/SolverLinear.cc
Log:
Forgot some files
Modified: short/3D/PyLith/trunk/libsrc/problems/SolverLinear.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/problems/SolverLinear.cc 2009-06-10 21:31:46 UTC (rev 15182)
+++ short/3D/PyLith/trunk/libsrc/problems/SolverLinear.cc 2009-06-10 21:55:03 UTC (rev 15183)
@@ -22,7 +22,7 @@
#include "pylith/utils/petscerror.h" // USES CHECK_PETSC_ERROR
-//#define FIELD_SPLIT
+#define FIELD_SPLIT
#if defined(FIELD_SPLIT)
#include <petscmesh_solvers.hh> // USES constructFieldSplit()
Added: short/3D/PyLith/trunk/pylith/perf/GlobalOrder.py
===================================================================
--- short/3D/PyLith/trunk/pylith/perf/GlobalOrder.py (rev 0)
+++ short/3D/PyLith/trunk/pylith/perf/GlobalOrder.py 2009-06-10 21:55:03 UTC (rev 15183)
@@ -0,0 +1,25 @@
+#!/usr/bin/env python
+
+from Memory import Memory
+
+class GlobalOrder(Memory):
+ """
+ Mesh object for holding global order memory and performance information.
+ """
+ def __init__(self, label = '', chartSize = 0):
+ """
+ Constructor.
+ """
+ self.label = label
+ self.chartSize = chartSize
+ return
+
+ def tabulate(self, memDict):
+ """
+ Tabulate memory use.
+ """
+ # Here we have a map<int --> (int,int)> + set<int>
+ if not self.label in memDict:
+ memDict[self.label] = 0
+ memDict[self.label] += self.chartSize*(3 * self.sizeInt + self.sizeMapEntry) + self.chartSize*(self.sizeSetEntry+self.sizeInt)
+ return
Added: short/3D/PyLith/trunk/pylith/perf/Jacobian.py
===================================================================
--- short/3D/PyLith/trunk/pylith/perf/Jacobian.py (rev 0)
+++ short/3D/PyLith/trunk/pylith/perf/Jacobian.py 2009-06-10 21:55:03 UTC (rev 15183)
@@ -0,0 +1,24 @@
+#!/usr/bin/env python
+
+from Memory import Memory
+
+class Jacobian(Memory):
+ """
+ Mesh object for holding matrix memory and performance information.
+ """
+ def __init__(self, label = ''):
+ """
+ Constructor.
+ """
+ self.label = label
+ return
+
+ def tabulate(self, memDict):
+ """
+ Tabulate memory use.
+ """
+ # Here we have preallocation sieve and Mat
+ if not self.label in memDict:
+ memDict[self.label] = 0
+ memDict[self.label] += 0
+ return
More information about the CIG-COMMITS
mailing list