[cig-commits] [commit] knepley/fix-faults-parallel: Add number of processes to application info output. (4449b1a)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Fri Apr 18 13:33:36 PDT 2014


Repository : ssh://geoshell/pylith

On branch  : knepley/fix-faults-parallel
Link       : https://github.com/geodynamics/pylith/compare/1cbca9cbd832376cceca629383ad3c8e3db090f0...1169098c7387a0574706ddb12645c08f3401a304

>---------------------------------------------------------------

commit 4449b1acedd1be45acb9e4db00acd0904dd69304
Author: Brad Aagaard <baagaard at usgs.gov>
Date:   Fri Apr 18 12:42:59 2014 -0700

    Add number of processes to application info output.


>---------------------------------------------------------------

4449b1acedd1be45acb9e4db00acd0904dd69304
 pylith/apps/PyLithApp.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/pylith/apps/PyLithApp.py b/pylith/apps/PyLithApp.py
index ffada14..f4c0cb9 100644
--- a/pylith/apps/PyLithApp.py
+++ b/pylith/apps/PyLithApp.py
@@ -94,8 +94,12 @@ class PyLithApp(PetscApplication):
           import pdb
           pdb.set_trace()
         
-    from pylith.utils.profiling import resourceUsageString
+    from pylith.mpi.Communicator import mpi_comm_world
+    comm = mpi_comm_world()
+    if 0 == comm.rank:
+      self._info.log("Running on %d process(es)." % comm.size)
 
+    from pylith.utils.profiling import resourceUsageString    
     self._debug.log(resourceUsageString())
 
     self._setupLogging()



More information about the CIG-COMMITS mailing list