[cig-commits] r9103 - in short/3D/PyLith/trunk/unittests/pytests: faults topology

brad at geodynamics.org brad at geodynamics.org
Sun Jan 20 16:04:32 PST 2008


Author: brad
Date: 2008-01-20 16:04:32 -0800 (Sun, 20 Jan 2008)
New Revision: 9103

Modified:
   short/3D/PyLith/trunk/unittests/pytests/faults/TestFaultCohesiveKin.py
   short/3D/PyLith/trunk/unittests/pytests/topology/TestMeshGenSimple.py
Log:
Updated pytests for changes in OutputManager.

Modified: short/3D/PyLith/trunk/unittests/pytests/faults/TestFaultCohesiveKin.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/faults/TestFaultCohesiveKin.py	2008-01-20 22:49:46 UTC (rev 9102)
+++ short/3D/PyLith/trunk/unittests/pytests/faults/TestFaultCohesiveKin.py	2008-01-21 00:04:32 UTC (rev 9103)
@@ -32,6 +32,7 @@
     Test to make sure FaultCohesiveKin satisfies integrator requirements.
     """
     fault = FaultCohesiveKin()
+    fault._configure()
     from pylith.feassemble.Integrator import implementsIntegrator
     self.failUnless(implementsIntegrator(fault))
     return
@@ -42,6 +43,7 @@
     Test constructor.
     """
     fault = FaultCohesiveKin()
+    fault._configure()
     fault._createCppHandle()
     self.failIfEqual(None, fault.cppHandle)
     return
@@ -64,6 +66,7 @@
     mesh = importer.read(debug=False, interpolate=False)
 
     fault = FaultCohesiveKin()
+    fault._configure()
     fault.id = 10
     fault.label = "fault"
 
@@ -272,6 +275,9 @@
     
     # Setup fault
     fault = FaultCohesiveKin()
+    fault._configure()
+    fault.output._configure()
+    fault.output.writer._configure()
     fault.id = 10
     fault.label = "fault"
     fault.upDir = [0, 0, 1]

Modified: short/3D/PyLith/trunk/unittests/pytests/topology/TestMeshGenSimple.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/topology/TestMeshGenSimple.py	2008-01-20 22:49:46 UTC (rev 9102)
+++ short/3D/PyLith/trunk/unittests/pytests/topology/TestMeshGenSimple.py	2008-01-21 00:04:32 UTC (rev 9103)
@@ -53,7 +53,7 @@
     io.open(mesh)
     from pyre.units.time import s
     t = 0.0*s
-    io.openTimeStep(t, 0)
+    io.openTimeStep(t)
     io.closeTimeStep()
     io.close()
 
@@ -63,7 +63,7 @@
     newMesh = distributor.distribute(mesh)
     io.writer.filename = 'newMesh.vtk'
     io.open(newMesh)
-    io.openTimeStep(t, 0)
+    io.openTimeStep(t)
     io.closeTimeStep()
     io.close()
     return



More information about the cig-commits mailing list