[cig-commits] r22046 - short/3D/PyLith/trunk/pylith/problems

brad at geodynamics.org brad at geodynamics.org
Sat May 11 07:53:32 PDT 2013


Author: brad
Date: 2013-05-11 07:53:32 -0700 (Sat, 11 May 2013)
New Revision: 22046

Modified:
   short/3D/PyLith/trunk/pylith/problems/Formulation.py
Log:
Be more careful in cleanup.

Modified: short/3D/PyLith/trunk/pylith/problems/Formulation.py
===================================================================
--- short/3D/PyLith/trunk/pylith/problems/Formulation.py	2013-05-11 14:53:10 UTC (rev 22045)
+++ short/3D/PyLith/trunk/pylith/problems/Formulation.py	2013-05-11 14:53:32 UTC (rev 22046)
@@ -706,8 +706,9 @@
       self.jacobian.cleanup()
     if not self.fields is None:
       self.fields.cleanup()
-    for integrator in self.integratorsMesh:
-      integrator.cleanup()
+    if not self.integratorsMesh is None:
+      for integrator in self.integratorsMesh:
+        integrator.cleanup()
     return
 
 



More information about the CIG-COMMITS mailing list