[cig-commits] r21286 - short/3D/PyLith/trunk/unittests/pytests/topology

brad at geodynamics.org brad at geodynamics.org
Tue Jan 22 16:37:28 PST 2013


Author: brad
Date: 2013-01-22 16:37:28 -0800 (Tue, 22 Jan 2013)
New Revision: 21286

Modified:
   short/3D/PyLith/trunk/unittests/pytests/topology/TestMeshField.py
   short/3D/PyLith/trunk/unittests/pytests/topology/TestSolutionFields.py
Log:
Updated topology python unit tests.

Modified: short/3D/PyLith/trunk/unittests/pytests/topology/TestMeshField.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/topology/TestMeshField.py	2013-01-22 23:21:29 UTC (rev 21285)
+++ short/3D/PyLith/trunk/unittests/pytests/topology/TestMeshField.py	2013-01-23 00:37:28 UTC (rev 21286)
@@ -51,6 +51,7 @@
     self.mesh = importer.read(debug=False, interpolate=False)
     
     self.field = MeshField(self.mesh)
+    self.field.allocate()
     return
 
 
@@ -169,6 +170,7 @@
     Test newSection(field).
     """
     fieldB = MeshField(self.mesh)
+    fieldB.allocate()
     fieldB.copy(self.field)
 
     # No test of result

Modified: short/3D/PyLith/trunk/unittests/pytests/topology/TestSolutionFields.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/topology/TestSolutionFields.py	2013-01-22 23:21:29 UTC (rev 21285)
+++ short/3D/PyLith/trunk/unittests/pytests/topology/TestSolutionFields.py	2013-01-23 00:37:28 UTC (rev 21286)
@@ -99,6 +99,8 @@
     helper_fieldAdd(fields)
     fieldA = fields.get("field A")
     fieldB = fields.get("field B")
+    fieldA.allocate()
+    fieldB.allocate()
     fieldA.copy(fieldB)
     return
 



More information about the CIG-COMMITS mailing list