[cig-commits] r7082 - short/3D/PyLith/trunk/pylith/bc
brad at geodynamics.org
brad at geodynamics.org
Wed Jun 6 17:41:26 PDT 2007
Author: brad
Date: 2007-06-06 17:41:26 -0700 (Wed, 06 Jun 2007)
New Revision: 7082
Modified:
short/3D/PyLith/trunk/pylith/bc/BoundaryCondition.py
Log:
Removed factory method since BoundaryCondition is an abstract base class.
Modified: short/3D/PyLith/trunk/pylith/bc/BoundaryCondition.py
===================================================================
--- short/3D/PyLith/trunk/pylith/bc/BoundaryCondition.py 2007-06-06 21:20:03 UTC (rev 7081)
+++ short/3D/PyLith/trunk/pylith/bc/BoundaryCondition.py 2007-06-07 00:41:26 UTC (rev 7082)
@@ -81,13 +81,13 @@
"""
Initialize boundary condition.
"""
- if None != self.cppHandle:
- self.db.initialize()
- self.cppHandle.id = self.id
- self.cppHandle.label = self.label
- self.cppHandle.db = self.db.cppHandle
- self.mesh = mesh
- self.cppHandle.initialize(mesh.cppHandle, mesh.coordsys.cppHandle)
+ assert(None != self.cppHandle)
+ self.db.initialize()
+ self.cppHandle.id = self.id
+ self.cppHandle.label = self.label
+ self.cppHandle.db = self.db.cppHandle
+ self.mesh = mesh
+ self.cppHandle.initialize(mesh.cppHandle, mesh.coordsys.cppHandle)
return
@@ -104,13 +104,4 @@
return
-# FACTORIES ////////////////////////////////////////////////////////////
-
-def boundary_condition():
- """
- Factory associated with BoundaryCondition.
- """
- return BoundaryCondition()
-
-
# End of file
More information about the cig-commits
mailing list