[cig-commits] r8186 - short/3D/PyLith/trunk/pylith/solver

brad at geodynamics.org brad at geodynamics.org
Sat Oct 27 11:16:37 PDT 2007


Author: brad
Date: 2007-10-27 11:16:37 -0700 (Sat, 27 Oct 2007)
New Revision: 8186

Modified:
   short/3D/PyLith/trunk/pylith/solver/Solver.py
   short/3D/PyLith/trunk/pylith/solver/SolverLinear.py
   short/3D/PyLith/trunk/pylith/solver/SolverNonlinear.py
Log:
Added missing solver functions for object factories.

Modified: short/3D/PyLith/trunk/pylith/solver/Solver.py
===================================================================
--- short/3D/PyLith/trunk/pylith/solver/Solver.py	2007-10-27 18:11:11 UTC (rev 8185)
+++ short/3D/PyLith/trunk/pylith/solver/Solver.py	2007-10-27 18:16:37 UTC (rev 8186)
@@ -65,4 +65,13 @@
     return
 
 
+# FACTORIES ////////////////////////////////////////////////////////////
+
+def solver():
+  """
+  Factory associated with Solver.
+  """
+  return Solver()
+
+
 # End of file 

Modified: short/3D/PyLith/trunk/pylith/solver/SolverLinear.py
===================================================================
--- short/3D/PyLith/trunk/pylith/solver/SolverLinear.py	2007-10-27 18:11:11 UTC (rev 8185)
+++ short/3D/PyLith/trunk/pylith/solver/SolverLinear.py	2007-10-27 18:16:37 UTC (rev 8186)
@@ -90,4 +90,13 @@
     return
   
 
+# FACTORIES ////////////////////////////////////////////////////////////
+
+def solver():
+  """
+  Factory associated with Solver.
+  """
+  return SolverLinear()
+
+
 # End of file 

Modified: short/3D/PyLith/trunk/pylith/solver/SolverNonlinear.py
===================================================================
--- short/3D/PyLith/trunk/pylith/solver/SolverNonlinear.py	2007-10-27 18:11:11 UTC (rev 8185)
+++ short/3D/PyLith/trunk/pylith/solver/SolverNonlinear.py	2007-10-27 18:16:37 UTC (rev 8186)
@@ -90,4 +90,13 @@
     return
   
 
+# FACTORIES ////////////////////////////////////////////////////////////
+
+def solver():
+  """
+  Factory associated with Solver.
+  """
+  return SolverNonliner()
+
+
 # End of file 



More information about the cig-commits mailing list