[cig-commits] r7324 - in short/3D/PyLith/trunk: pylith/feassemble unittests/pytests/bc

brad at geodynamics.org brad at geodynamics.org
Wed Jun 20 08:15:20 PDT 2007


Author: brad
Date: 2007-06-20 08:15:19 -0700 (Wed, 20 Jun 2007)
New Revision: 7324

Modified:
   short/3D/PyLith/trunk/pylith/feassemble/Constraint.py
   short/3D/PyLith/trunk/unittests/pytests/bc/TestDirichlet.py
Log:
Fixed bug in setting C++ useSolnIncr in Constriant.py.

Modified: short/3D/PyLith/trunk/pylith/feassemble/Constraint.py
===================================================================
--- short/3D/PyLith/trunk/pylith/feassemble/Constraint.py	2007-06-20 15:09:12 UTC (rev 7323)
+++ short/3D/PyLith/trunk/pylith/feassemble/Constraint.py	2007-06-20 15:15:19 UTC (rev 7324)
@@ -84,7 +84,7 @@
     Set behavior for using total field solution or incremental field solution.
     """
     assert(None != self.cppHandle)
-    self.cppHandle.useSolnIncr(flag)
+    self.cppHandle.useSolnIncr = flag
     return
   
 

Modified: short/3D/PyLith/trunk/unittests/pytests/bc/TestDirichlet.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/bc/TestDirichlet.py	2007-06-20 15:09:12 UTC (rev 7323)
+++ short/3D/PyLith/trunk/unittests/pytests/bc/TestDirichlet.py	2007-06-20 15:15:19 UTC (rev 7324)
@@ -112,6 +112,15 @@
     return
 
 
+  def test_useSolnIncr(self):
+    """
+    Test useSolnIncr().
+    """
+    (mesh, bc) = self._initialize()
+    bc.useSolnIncr(True)
+    return
+
+
   def test_setField(self):
     """
     Test setField().



More information about the cig-commits mailing list