[cig-commits] r19500 - short/3D/PyLith/trunk/pylith/problems

brad at geodynamics.org brad at geodynamics.org
Fri Jan 27 10:22:59 PST 2012


Author: brad
Date: 2012-01-27 10:22:58 -0800 (Fri, 27 Jan 2012)
New Revision: 19500

Modified:
   short/3D/PyLith/trunk/pylith/problems/Problem.py
Log:
Merge from stable.

Modified: short/3D/PyLith/trunk/pylith/problems/Problem.py
===================================================================
--- short/3D/PyLith/trunk/pylith/problems/Problem.py	2012-01-27 18:22:05 UTC (rev 19499)
+++ short/3D/PyLith/trunk/pylith/problems/Problem.py	2012-01-27 18:22:58 UTC (rev 19500)
@@ -144,7 +144,10 @@
     """
     Verify compatibility of configuration.
     """
-    self._info.log("Verifying compatibility of problem configuration.")
+    from pylith.mpi.Communicator import mpi_comm_world
+    comm = mpi_comm_world()
+    if 0 == comm.rank:
+      self._info.log("Verifying compatibility of problem configuration.")
     if self.dimension != self.mesh.dimension():
       raise ValueError, \
             "Spatial dimension of problem is '%d' but mesh contains cells " \



More information about the CIG-COMMITS mailing list