[cig-commits] r7292 - in short/3D/PyLith/trunk/pylith: materials problems

brad at geodynamics.org brad at geodynamics.org
Mon Jun 18 16:34:55 PDT 2007


Author: brad
Date: 2007-06-18 16:34:54 -0700 (Mon, 18 Jun 2007)
New Revision: 7292

Modified:
   short/3D/PyLith/trunk/pylith/materials/BiMaterial.py
   short/3D/PyLith/trunk/pylith/materials/Homogeneous.py
   short/3D/PyLith/trunk/pylith/problems/Problem.py
Log:
Fixed name of materials family. Fixed factory name in provided materials bins (should be object_bin).

Modified: short/3D/PyLith/trunk/pylith/materials/BiMaterial.py
===================================================================
--- short/3D/PyLith/trunk/pylith/materials/BiMaterial.py	2007-06-18 23:27:12 UTC (rev 7291)
+++ short/3D/PyLith/trunk/pylith/materials/BiMaterial.py	2007-06-18 23:34:54 UTC (rev 7292)
@@ -80,7 +80,7 @@
   
 # FACTORIES ////////////////////////////////////////////////////////////
 
-def materials_bin():
+def object_bin():
   """
   Factory associated with BiMaterial.
   """

Modified: short/3D/PyLith/trunk/pylith/materials/Homogeneous.py
===================================================================
--- short/3D/PyLith/trunk/pylith/materials/Homogeneous.py	2007-06-18 23:27:12 UTC (rev 7291)
+++ short/3D/PyLith/trunk/pylith/materials/Homogeneous.py	2007-06-18 23:34:54 UTC (rev 7292)
@@ -73,7 +73,7 @@
   
 # FACTORIES ////////////////////////////////////////////////////////////
 
-def materials_bin():
+def object_bin():
   """
   Factory associated with Homogeneous.
   """

Modified: short/3D/PyLith/trunk/pylith/problems/Problem.py
===================================================================
--- short/3D/PyLith/trunk/pylith/problems/Problem.py	2007-06-18 23:27:12 UTC (rev 7291)
+++ short/3D/PyLith/trunk/pylith/problems/Problem.py	2007-06-18 23:34:54 UTC (rev 7292)
@@ -49,7 +49,7 @@
     from pylith.utils.ObjectBin import ObjectBin
 
     from pylith.materials.Homogeneous import Homogeneous
-    materials = pyre.inventory.facility("materials", family="materials",
+    materials = pyre.inventory.facility("materials", family="object_bin",
                                         factory=Homogeneous)
     materials.meta['tip'] = "Materials in problem."
 



More information about the cig-commits mailing list