[cig-commits] r15380 - in short/3D/PyLith/trunk: pylith/bc unittests/pytests/bc
brad at geodynamics.org
brad at geodynamics.org
Wed Jun 24 15:13:55 PDT 2009
Author: brad
Date: 2009-06-24 15:13:55 -0700 (Wed, 24 Jun 2009)
New Revision: 15380
Modified:
short/3D/PyLith/trunk/pylith/bc/TimeDependent.py
short/3D/PyLith/trunk/unittests/pytests/bc/TestDirichletBC.py
Log:
Fixed bug in configuring TimeDependent.
Modified: short/3D/PyLith/trunk/pylith/bc/TimeDependent.py
===================================================================
--- short/3D/PyLith/trunk/pylith/bc/TimeDependent.py 2009-06-24 21:46:53 UTC (rev 15379)
+++ short/3D/PyLith/trunk/pylith/bc/TimeDependent.py 2009-06-24 22:13:55 UTC (rev 15380)
@@ -109,7 +109,7 @@
if not isinstance(self.inventory.dbChange, NullComponent):
ModuleTimeDependent.dbChange(self, self.inventory.dbChange)
if not isinstance(self.inventory.thChange, NullComponent):
- ModuleTimeDependent.thChange(self, self.inventory.thChange)
+ ModuleTimeDependent.dbTimeHistory(self, self.inventory.thChange)
return
Modified: short/3D/PyLith/trunk/unittests/pytests/bc/TestDirichletBC.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/bc/TestDirichletBC.py 2009-06-24 21:46:53 UTC (rev 15379)
+++ short/3D/PyLith/trunk/unittests/pytests/bc/TestDirichletBC.py 2009-06-24 22:13:55 UTC (rev 15380)
@@ -33,6 +33,28 @@
return
+ def test_configure(self):
+ """
+ Test constructor.
+ """
+ from spatialdata.spatialdb.SimpleDB import SimpleDB
+ db = SimpleDB()
+ db._configure()
+
+ from spatialdata.spatialdb.TimeHistory import TimeHistory
+ th = TimeHistory()
+ th._configure()
+
+ from pylith.bc.DirichletBC import DirichletBC
+ bc = DirichletBC()
+ bc.inventory.dbInitial = db
+ bc.inventory.dbRate = db
+ bc.inventory.dbChange = db
+ bc.inventory.thChange = th
+ bc._configure()
+ return
+
+
def test_implementsConstraint(self):
"""
Test to make sure DirichletBC satisfies constraint requirements.
More information about the CIG-COMMITS
mailing list