[cig-commits] r7031 - short/3D/PyLith/trunk/unittests/pytests/feassemble

brad at geodynamics.org brad at geodynamics.org
Fri Jun 1 09:40:52 PDT 2007


Author: brad
Date: 2007-06-01 09:40:51 -0700 (Fri, 01 Jun 2007)
New Revision: 7031

Modified:
   short/3D/PyLith/trunk/unittests/pytests/feassemble/TestElasticityImplicit.py
Log:
Updated implicit time integration formulation, removing superfluous dispT field. Updated corresponding unit tests.

Modified: short/3D/PyLith/trunk/unittests/pytests/feassemble/TestElasticityImplicit.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/feassemble/TestElasticityImplicit.py	2007-06-01 16:38:34 UTC (rev 7030)
+++ short/3D/PyLith/trunk/unittests/pytests/feassemble/TestElasticityImplicit.py	2007-06-01 16:40:51 UTC (rev 7031)
@@ -151,8 +151,8 @@
     """
     (mesh, integrator, fields) = self._initialize()
 
-    dispT = fields.getReal("dispT")
-    integrator.updateState(dispT)
+    dispTBctpdt = fields.getReal("dispTBctpdt")
+    integrator.updateState(dispTBctpdt)
 
     # We should really add something here to check to make sure things
     # actually initialized correctly    
@@ -213,9 +213,7 @@
     from pylith.topology.FieldsManager import FieldsManager
     fields = FieldsManager(mesh)
     fields.addReal("residual")
-    fields.addReal("dispBCTpdt")
-    fields.addReal("dispT")
-    fields.createHistory(["dispBCTpdt", "dispT"])
+    fields.addReal("dispTBctpdt")
     fields.setFiberDimension("residual", cs.spaceDim)
     fields.allocate("residual")
     fields.copyLayout("residual")



More information about the cig-commits mailing list