[cig-commits] r15658 - short/3D/PyLith/trunk/unittests/pytests/faults
brad at geodynamics.org
brad at geodynamics.org
Sun Sep 6 13:59:47 PDT 2009
Author: brad
Date: 2009-09-06 13:59:47 -0700 (Sun, 06 Sep 2009)
New Revision: 15658
Modified:
short/3D/PyLith/trunk/unittests/pytests/faults/TestFaultCohesiveKin.py
Log:
Updated python unit test for changes to adjustTopology interface.
Modified: short/3D/PyLith/trunk/unittests/pytests/faults/TestFaultCohesiveKin.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/faults/TestFaultCohesiveKin.py 2009-09-05 00:59:36 UTC (rev 15657)
+++ short/3D/PyLith/trunk/unittests/pytests/faults/TestFaultCohesiveKin.py 2009-09-06 20:59:47 UTC (rev 15658)
@@ -108,9 +108,12 @@
fault.inventory.faultLabel = "fault"
fault._configure()
+ nvertices = fault.numVertices(mesh)
firstFaultVertex = 0
- firstFaultCell = 0
- fault.adjustTopology(mesh, firstFaultVertex, firstFaultCell)
+ firstLagrangeVertex = nvertices
+ firstFaultCell = 2*nvertices
+ fault.adjustTopology(mesh, firstFaultVertex, firstLagrangeVertex,
+ firstFaultCell)
# We should really add something here to check to make sure things
# actually initialized correctly
@@ -336,9 +339,12 @@
eqsrc.inventory.slipfn = slipfn
eqsrc._configure()
+ nvertices = fault.numVertices(mesh)
firstFaultVertex = 0
- firstFaultCell = 0
- fault.adjustTopology(mesh, firstFaultVertex, firstFaultCell)
+ firstLagrangeVertex = nvertices
+ firstFaultCell = 2*nvertices
+ fault.adjustTopology(mesh, firstFaultVertex, firstLagrangeVertex,
+ firstFaultCell)
fault.preinitialize(mesh)
fault.timeStep(dt)
fault.verifyConfiguration()
More information about the CIG-COMMITS
mailing list