[cig-commits] r19499 - short/3D/PyLith/branches/v1.6-stable/pylith/problems
brad at geodynamics.org
brad at geodynamics.org
Fri Jan 27 10:22:05 PST 2012
Author: brad
Date: 2012-01-27 10:22:05 -0800 (Fri, 27 Jan 2012)
New Revision: 19499
Modified:
short/3D/PyLith/branches/v1.6-stable/pylith/problems/Problem.py
Log:
Limit journal info output to proc 0.
Modified: short/3D/PyLith/branches/v1.6-stable/pylith/problems/Problem.py
===================================================================
--- short/3D/PyLith/branches/v1.6-stable/pylith/problems/Problem.py 2012-01-27 17:24:30 UTC (rev 19498)
+++ short/3D/PyLith/branches/v1.6-stable/pylith/problems/Problem.py 2012-01-27 18:22:05 UTC (rev 19499)
@@ -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