[cig-commits] [commit] knepley/upgrade-petsc-interface: Flush stdout in script running examples. (361dd21)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Wed Nov 27 11:19:03 PST 2013


Repository : ssh://geoshell/pylith

On branch  : knepley/upgrade-petsc-interface
Link       : https://github.com/geodynamics/pylith/compare/6fe83b00085ca5cd29c3a38d94c45f83f91be7f0...361dd216ce9b8b04705b457143bfef4e06921a62

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

commit 361dd216ce9b8b04705b457143bfef4e06921a62
Author: Brad Aagaard <baagaard at usgs.gov>
Date:   Wed Nov 27 11:21:58 2013 -0800

    Flush stdout in script running examples.


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

361dd216ce9b8b04705b457143bfef4e06921a62
 examples/run_examples.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/examples/run_examples.py b/examples/run_examples.py
index dcb1a9e..3873fe2 100755
--- a/examples/run_examples.py
+++ b/examples/run_examples.py
@@ -41,6 +41,7 @@ def run_pylith(dir, examples, nprocs=1):
     for simfiles in examples:
         cmd = "pylith --nodes=%d %s" % (nprocs, simfiles)
         print "WORKDIR: %s, RUNNING %s" % (wkd, cmd)
+        sys.stdout.flush()
         os.system(cmd)
 
 # ======================================================================



More information about the CIG-COMMITS mailing list