[cig-commits] r22066 - in short/3D/PyLith/trunk: libsrc/pylith/topology pylith/problems
brad at geodynamics.org
brad at geodynamics.org
Tue May 14 15:50:38 PDT 2013
Author: brad
Date: 2013-05-14 15:50:37 -0700 (Tue, 14 May 2013)
New Revision: 22066
Modified:
short/3D/PyLith/trunk/libsrc/pylith/topology/Field.cc
short/3D/PyLith/trunk/pylith/problems/Explicit.py
Log:
Small fixes for dellocation with explicit time stepping.
Modified: short/3D/PyLith/trunk/libsrc/pylith/topology/Field.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/pylith/topology/Field.cc 2013-05-14 22:30:52 UTC (rev 22065)
+++ short/3D/PyLith/trunk/libsrc/pylith/topology/Field.cc 2013-05-14 22:50:37 UTC (rev 22066)
@@ -1310,7 +1310,7 @@
// Experimental
void
pylith::topology::Field::addField(const char *name,
- int numComponents)
+ int numComponents)
{ // addField
PYLITH_METHOD_BEGIN;
Modified: short/3D/PyLith/trunk/pylith/problems/Explicit.py
===================================================================
--- short/3D/PyLith/trunk/pylith/problems/Explicit.py 2013-05-14 22:30:52 UTC (rev 22065)
+++ short/3D/PyLith/trunk/pylith/problems/Explicit.py 2013-05-14 22:50:37 UTC (rev 22066)
@@ -149,7 +149,7 @@
if 0 == comm.rank:
self._info.log("Creating lumped Jacobian matrix.")
- from pylith.topology.topology import Field
+ from pylith.topology.Field import Field
jacobian = Field(self.mesh())
jacobian.newSection(jacobian.VERTICES_FIELD, dimension)
jacobian.allocate()
@@ -330,15 +330,6 @@
return
- def _cleanup(self):
- """
- Deallocate PETSc and local data structures.
- """
- if not self.fields is None:
- self.fields.cleanup()
- return
-
-
# FACTORIES ////////////////////////////////////////////////////////////
def pde_formulation():
More information about the CIG-COMMITS
mailing list