[cig-commits] r14267 - short/3D/PyLith/branches/pylith-swig/unittests/pytests/bc
brad at geodynamics.org
brad at geodynamics.org
Sun Mar 8 20:35:59 PDT 2009
Author: brad
Date: 2009-03-08 20:35:58 -0700 (Sun, 08 Mar 2009)
New Revision: 14267
Modified:
short/3D/PyLith/branches/pylith-swig/unittests/pytests/bc/TestAbsorbingDampers.py
Log:
Updated.
Modified: short/3D/PyLith/branches/pylith-swig/unittests/pytests/bc/TestAbsorbingDampers.py
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/pytests/bc/TestAbsorbingDampers.py 2009-03-09 03:00:47 UTC (rev 14266)
+++ short/3D/PyLith/branches/pylith-swig/unittests/pytests/bc/TestAbsorbingDampers.py 2009-03-09 03:35:58 UTC (rev 14267)
@@ -233,12 +233,13 @@
fields.add("disp t-dt")
fields.solutionName("solution")
fields.createHistory(["solution", "disp t", "disp t-dt"])
- fields.setFiberDimension("residual", cs.spaceDim)
- fields.allocate("residual")
+
+ residual = fields.get("residual")
+ residual.newSection(residual.VERTICES_FIELD, cs.spaceDim())
+ residual.allocate()
+ residual.zero()
+
fields.copyLayout("residual")
-
- import pylith.topology.topology as bindings
- bindings.zeroRealSection(fields.getReal("residual"))
return (mesh, bc, fields)
More information about the CIG-COMMITS
mailing list