[cig-commits] r19034 - short/3D/PyLith/branches/v1.6-stable/tests/topology

brad at geodynamics.org brad at geodynamics.org
Thu Oct 6 14:30:37 PDT 2011


Author: brad
Date: 2011-10-06 14:30:37 -0700 (Thu, 06 Oct 2011)
New Revision: 19034

Modified:
   short/3D/PyLith/branches/v1.6-stable/tests/topology/test_meshmem.py
Log:
Added flushing stdout to memory test script.

Modified: short/3D/PyLith/branches/v1.6-stable/tests/topology/test_meshmem.py
===================================================================
--- short/3D/PyLith/branches/v1.6-stable/tests/topology/test_meshmem.py	2011-10-06 18:06:55 UTC (rev 19033)
+++ short/3D/PyLith/branches/v1.6-stable/tests/topology/test_meshmem.py	2011-10-06 21:30:37 UTC (rev 19034)
@@ -134,7 +134,7 @@
 
       mesh = dmesh
       
-      
+
     # Refine mesh (if necessary)
     from pylith.topology.RefineUniform import RefineUniform
     refiner = RefineUniform()
@@ -157,6 +157,7 @@
 
 
   def _showStatus(self, stage):
+    import sys
     from pylith.utils.profiling import resourceUsageString
     from pylith.mpi.Communicator import petsc_comm_world
     comm = petsc_comm_world()
@@ -171,6 +172,7 @@
         print "\nPROCESSOR %d" % comm.rank
         print "\nStatus from ps: %s\n" % resourceUsageString()
         self.logger.show()
+        sys.stdout.flush()
 
       comm.barrier()
     return



More information about the CIG-COMMITS mailing list