[cig-commits] r16968 - short/3D/PyLith/trunk/pylith/feassemble

brad at geodynamics.org brad at geodynamics.org
Wed Jun 9 19:28:54 PDT 2010


Author: brad
Date: 2010-06-09 19:28:54 -0700 (Wed, 09 Jun 2010)
New Revision: 16968

Modified:
   short/3D/PyLith/trunk/pylith/feassemble/IntegratorElasticity.py
Log:
Added check to make sure dimension of material matches the dimension of the mesh.

Modified: short/3D/PyLith/trunk/pylith/feassemble/IntegratorElasticity.py
===================================================================
--- short/3D/PyLith/trunk/pylith/feassemble/IntegratorElasticity.py	2010-06-10 02:25:51 UTC (rev 16967)
+++ short/3D/PyLith/trunk/pylith/feassemble/IntegratorElasticity.py	2010-06-10 02:28:54 UTC (rev 16968)
@@ -72,10 +72,11 @@
     Integrator.verifyConfiguration(self)
 
     if self.mesh.dimension() != self.materialObj.dimension():
-      raise ValueError("Mesh dimension is '%d' but material '%s' applies " \
-                         "to dimension '%d'." % \ 
+      raise ValueError("Mesh dimension is '%d' but material '%s' of type " \
+                         "'%s' applies to dimension '%d'." % \
                        (self.mesh.dimension(),
                         self.materialObj.label(),
+                        self.materialObj,
                         self.materialObj.dimension()))
     
     self.output.verifyConfiguration(self.mesh)



More information about the CIG-COMMITS mailing list