[cig-commits] r6745 - in short/3D/PyLith/branches/pylith-0.8/pylith3d/examples: . linhex/bm1 linhex/bm1a linhex/bm2a linhex/powertest linhex/powertestesf

leif at geodynamics.org leif at geodynamics.org
Tue May 1 18:31:57 PDT 2007


Author: leif
Date: 2007-05-01 18:31:56 -0700 (Tue, 01 May 2007)
New Revision: 6745

Removed:
   short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/bm1/runex.py
   short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/bm1a/runex.py
   short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/bm2a/runex.py
   short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/powertest/runex-debug.py
   short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/powertest/runex.py
   short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/powertestesf/runex-debug.py
   short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/powertestesf/runex.py
Modified:
   short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/Makefile.am
Log:
Removed remaining 'runex' scripts, to avoid confusion.


Modified: short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/Makefile.am
===================================================================
--- short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/Makefile.am	2007-05-02 00:00:31 UTC (rev 6744)
+++ short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/Makefile.am	2007-05-02 01:31:56 UTC (rev 6745)
@@ -27,7 +27,6 @@
 	linhex/bm1/bm1.prop \
 	linhex/bm1/bm1.statevar \
 	linhex/bm1/bm1.time \
-	linhex/bm1/runex.py \
 	linhex/bm1a/bm1a.bc \
 	linhex/bm1a/bm1a.connect \
 	linhex/bm1a/bm1a.coord \
@@ -37,7 +36,6 @@
 	linhex/bm1a/bm1a.prop \
 	linhex/bm1a/bm1a.statevar \
 	linhex/bm1a/bm1a.time \
-	linhex/bm1a/runex.py \
 	linhex/bm2a/bm2a.bc \
 	linhex/bm2a/bm2a.connect \
 	linhex/bm2a/bm2a.coord \
@@ -46,7 +44,6 @@
 	linhex/bm2a/bm2a.keyval \
 	linhex/bm2a/bm2a.prop \
 	linhex/bm2a/bm2a.time \
-	linhex/bm2a/runex.py \
 	linhex/patchtest/pt-bbar.keyval \
 	linhex/patchtest/pt-incomp.prop \
 	linhex/patchtest/pt-red.keyval \
@@ -86,8 +83,6 @@
 	linhex/powertest/powertest.prop \
 	linhex/powertest/powertest.statevar \
 	linhex/powertest/powertest.time \
-	linhex/powertest/runex-debug.py \
-	linhex/powertest/runex.py \
 	linhex/powertestesf/powertestesf.bc \
 	linhex/powertestesf/powertestesf.connect \
 	linhex/powertestesf/powertestesf.coord \
@@ -97,8 +92,6 @@
 	linhex/powertestesf/powertestesf.prop \
 	linhex/powertestesf/powertestesf.statevar \
 	linhex/powertestesf/powertestesf.time \
-	linhex/powertestesf/runex-debug.py \
-	linhex/powertestesf/runex.py \
 	linhex/ps1/README \
 	linhex/ps1/README.elas-tests \
 	linhex/ps1/README.vis-tests \

Deleted: short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/bm1/runex.py
===================================================================
--- short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/bm1/runex.py	2007-05-02 00:00:31 UTC (rev 6744)
+++ short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/bm1/runex.py	2007-05-02 01:31:56 UTC (rev 6745)
@@ -1,85 +0,0 @@
-#!/usr/bin/env python
-#
-# ======================================================================
-#
-#                           Brad T. Aagaard
-#                        U.S. Geological Survey
-#
-# {LicenseText}
-#
-# ======================================================================
-#
-
-root="bm1"
-
-# ----------------------------------------------------------------------
-def setupInput(nprocs):
-  dupext = [".fuldat", ".hist", ".keyval", ".prop", ".statevar", ".time"]
-  sinext = [".coord", ".connect", ".bc"]
-
-  print "Setting up symbolic links with prefix '%s_%d':" % (root, nprocs)
-  import os
-
-  dirFiles = os.listdir(os.getcwd())
-  for ext in sinext:
-    src = "%s%s" % (root, ext)
-    dest = "%s_%s%s" % (root, nprocs, ext)
-    if not dest in dirFiles:
-      print "  %s -> %s... created" % (dest, src)
-      os.symlink(src, dest)
-    else:
-      print "  %s -> %s... already exists" % (dest, src)
-
-  for ext in dupext:
-    src = "%s%s" % (root, ext)
-    for iproc in range(nprocs):
-      dest = "%s_%s.%d%s" % (root, nprocs, iproc, ext)
-      if not dest in dirFiles:
-        print "  %s -> %s... created" % (dest, src)
-        os.symlink(src, dest)
-      else:
-        print "  %s -> %s... already exists" % (dest, src)
-  return
-
-
-# ----------------------------------------------------------------------
-def run(nprocs):
-  print "Running PyLith..."
-
-  # TODO: Replace the use of launching via 'system' with use
-  # of Leif's architecture independent utility.
-
-  cmd = "mpirun -np %d `which pylith3dapp.py` " \
-        "--typos=relaxed " \
-        "--scanner.fileRoot=%s_%d " \
-        "--scanner.asciiOutput=full " \
-        "--scanner.ucdOutput=ascii " \
-        "-log_summary -pc_type bjacobi -sub_pc_type ilu " \
-        "-ksp_monitor -ksp_view -ksp_rtol 1e-09" % (nprocs, root, nprocs)
-  import os
-  print cmd
-  os.system(cmd)
-  return
-
-
-# ----------------------------------------------------------------------
-if __name__ == "__main__":
-  from optparse import OptionParser
-
-  parser = OptionParser()
-  parser.add_option("-n", "--numprocs", dest="nprocs",
-                    type="int", metavar="NPROCS",
-                    help="Set number of processors.")
-  (options, args) = parser.parse_args()
-  if len(args) != 0:
-    parser.error("Incorrent number of arguments.")
-
-  nprocs = 1
-  if not options.nprocs is None:
-    nprocs = options.nprocs
-
-  setupInput(nprocs)
-  run(nprocs)
-
-
-# End of file

Deleted: short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/bm1a/runex.py
===================================================================
--- short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/bm1a/runex.py	2007-05-02 00:00:31 UTC (rev 6744)
+++ short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/bm1a/runex.py	2007-05-02 01:31:56 UTC (rev 6745)
@@ -1,85 +0,0 @@
-#!/usr/bin/env python
-#
-# ======================================================================
-#
-#                           Brad T. Aagaard
-#                        U.S. Geological Survey
-#
-# {LicenseText}
-#
-# ======================================================================
-#
-
-root="bm1a"
-
-# ----------------------------------------------------------------------
-def setupInput(nprocs):
-  dupext = [".fuldat", ".hist", ".keyval", ".prop", ".statevar", ".time"]
-  sinext = [".coord", ".connect", ".bc"]
-
-  print "Setting up symbolic links with prefix '%s_%d':" % (root, nprocs)
-  import os
-
-  dirFiles = os.listdir(os.getcwd())
-  for ext in sinext:
-    src = "%s%s" % (root, ext)
-    dest = "%s_%s%s" % (root, nprocs, ext)
-    if not dest in dirFiles:
-      print "  %s -> %s... created" % (dest, src)
-      os.symlink(src, dest)
-    else:
-      print "  %s -> %s... already exists" % (dest, src)
-
-  for ext in dupext:
-    src = "%s%s" % (root, ext)
-    for iproc in range(nprocs):
-      dest = "%s_%s.%d%s" % (root, nprocs, iproc, ext)
-      if not dest in dirFiles:
-        print "  %s -> %s... created" % (dest, src)
-        os.symlink(src, dest)
-      else:
-        print "  %s -> %s... already exists" % (dest, src)
-  return
-
-
-# ----------------------------------------------------------------------
-def run(nprocs):
-  print "Running PyLith..."
-
-  # TODO: Replace the use of launching via 'system' with use
-  # of Leif's architecture independent utility.
-
-  cmd = "mpirun -np %d `which pylith3dapp.py` " \
-        "--typos=relaxed " \
-        "--scanner.fileRoot=%s_%d " \
-        "--scanner.asciiOutput=full " \
-        "--scanner.ucdOutput=ascii " \
-        "-log_summary -pc_type bjacobi -sub_pc_type ilu " \
-        "-ksp_monitor -ksp_view -ksp_rtol 1e-09" % (nprocs, root, nprocs)
-  import os
-  print cmd
-  #os.system(cmd)
-  return
-
-
-# ----------------------------------------------------------------------
-if __name__ == "__main__":
-  from optparse import OptionParser
-
-  parser = OptionParser()
-  parser.add_option("-n", "--numprocs", dest="nprocs",
-                    type="int", metavar="NPROCS",
-                    help="Set number of processors.")
-  (options, args) = parser.parse_args()
-  if len(args) != 0:
-    parser.error("Incorrent number of arguments.")
-
-  nprocs = 1
-  if not options.nprocs is None:
-    nprocs = options.nprocs
-
-  setupInput(nprocs)
-  run(nprocs)
-
-
-# End of file

Deleted: short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/bm2a/runex.py
===================================================================
--- short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/bm2a/runex.py	2007-05-02 00:00:31 UTC (rev 6744)
+++ short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/bm2a/runex.py	2007-05-02 01:31:56 UTC (rev 6745)
@@ -1,85 +0,0 @@
-#!/usr/bin/env python
-#
-# ======================================================================
-#
-#                           Brad T. Aagaard
-#                        U.S. Geological Survey
-#
-# {LicenseText}
-#
-# ======================================================================
-#
-
-root="bm2a"
-
-# ----------------------------------------------------------------------
-def setupInput(nprocs):
-  dupext = [".fuldat", ".hist", ".keyval", ".prop", ".statevar", ".time"]
-  sinext = [".coord", ".connect", ".bc"]
-
-  print "Setting up symbolic links with prefix '%s_%d':" % (root, nprocs)
-  import os
-
-  dirFiles = os.listdir(os.getcwd())
-  for ext in sinext:
-    src = "%s%s" % (root, ext)
-    dest = "%s_%s%s" % (root, nprocs, ext)
-    if not dest in dirFiles:
-      print "  %s -> %s... created" % (dest, src)
-      os.symlink(src, dest)
-    else:
-      print "  %s -> %s... already exists" % (dest, src)
-
-  for ext in dupext:
-    src = "%s%s" % (root, ext)
-    for iproc in range(nprocs):
-      dest = "%s_%s.%d%s" % (root, nprocs, iproc, ext)
-      if not dest in dirFiles:
-        print "  %s -> %s... created" % (dest, src)
-        os.symlink(src, dest)
-      else:
-        print "  %s -> %s... already exists" % (dest, src)
-  return
-
-
-# ----------------------------------------------------------------------
-def run(nprocs):
-  print "Running PyLith..."
-
-  # TODO: Replace the use of launching via 'system' with use
-  # of Leif's architecture independent utility.
-
-  cmd = "mpirun -np %d `which pylith3dapp.py` " \
-        "--typos=relaxed " \
-        "--scanner.fileRoot=%s_%d " \
-        "--scanner.asciiOutput=full " \
-        "--scanner.ucdOutput=ascii " \
-        "-log_summary -pc_type bjacobi -sub_pc_type ilu " \
-        "-ksp_monitor -ksp_view -ksp_rtol 1e-09" % (nprocs, root, nprocs)
-  import os
-  print cmd
-  os.system(cmd)
-  return
-
-
-# ----------------------------------------------------------------------
-if __name__ == "__main__":
-  from optparse import OptionParser
-
-  parser = OptionParser()
-  parser.add_option("-n", "--numprocs", dest="nprocs",
-                    type="int", metavar="NPROCS",
-                    help="Set number of processors.")
-  (options, args) = parser.parse_args()
-  if len(args) != 0:
-    parser.error("Incorrent number of arguments.")
-
-  nprocs = 1
-  if not options.nprocs is None:
-    nprocs = options.nprocs
-
-  setupInput(nprocs)
-  run(nprocs)
-
-
-# End of file

Deleted: short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/powertest/runex-debug.py
===================================================================
--- short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/powertest/runex-debug.py	2007-05-02 00:00:31 UTC (rev 6744)
+++ short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/powertest/runex-debug.py	2007-05-02 01:31:56 UTC (rev 6745)
@@ -1,86 +0,0 @@
-#!/usr/bin/env python
-#
-# ======================================================================
-#
-#                           Brad T. Aagaard
-#                        U.S. Geological Survey
-#
-# {LicenseText}
-#
-# ======================================================================
-#
-
-root="powertest"
-
-# ----------------------------------------------------------------------
-def setupInput(nprocs):
-  dupext = [".fuldat", ".keyval", ".prop", ".statevar", ".time"]
-  sinext = [".coord", ".connect", ".bc", ".split", ".traction"]
-
-  print "Setting up symbolic links with prefix '%s_%d':" % (root, nprocs)
-  import os
-
-  dirFiles = os.listdir(os.getcwd())
-  for ext in sinext:
-    src = "%s%s" % (root, ext)
-    dest = "%s_%s%s" % (root, nprocs, ext)
-    if not dest in dirFiles:
-      print "  %s -> %s... created" % (dest, src)
-      os.symlink(src, dest)
-    else:
-      print "  %s -> %s... already exists" % (dest, src)
-
-  for ext in dupext:
-    src = "%s%s" % (root, ext)
-    for iproc in range(nprocs):
-      dest = "%s_%s.%d%s" % (root, nprocs, iproc, ext)
-      if not dest in dirFiles:
-        print "  %s -> %s... created" % (dest, src)
-        os.symlink(src, dest)
-      else:
-        print "  %s -> %s... already exists" % (dest, src)
-  return
-
-
-# ----------------------------------------------------------------------
-def run(nprocs):
-  print "Running PyLith..."
-
-  # TODO: Replace the use of launching via 'system' with use
-  # of Leif's architecture independent utility.
-
-  cmd = "mpirun -np %d `which pylith3dapp.py` " \
-        "--typos=relaxed " \
-        "--scanner.fileRoot=%s_%d " \
-        "--scanner.asciiOutput=full " \
-        "--scanner.ucdOutput=ascii " \
-        "-log_summary -pc_type bjacobi -sub_pc_type ilu " \
-	"-start_in_debugger " \
-        "-ksp_monitor -ksp_view -ksp_rtol 1e-09" % (nprocs, root, nprocs)
-  import os
-  print cmd
-  os.system(cmd)
-  return
-
-
-# ----------------------------------------------------------------------
-if __name__ == "__main__":
-  from optparse import OptionParser
-
-  parser = OptionParser()
-  parser.add_option("-n", "--numprocs", dest="nprocs",
-                    type="int", metavar="NPROCS",
-                    help="Set number of processors.")
-  (options, args) = parser.parse_args()
-  if len(args) != 0:
-    parser.error("Incorrent number of arguments.")
-
-  nprocs = 1
-  if not options.nprocs is None:
-    nprocs = options.nprocs
-
-  setupInput(nprocs)
-  run(nprocs)
-
-
-# End of file

Deleted: short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/powertest/runex.py
===================================================================
--- short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/powertest/runex.py	2007-05-02 00:00:31 UTC (rev 6744)
+++ short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/powertest/runex.py	2007-05-02 01:31:56 UTC (rev 6745)
@@ -1,85 +0,0 @@
-#!/usr/bin/env python
-#
-# ======================================================================
-#
-#                           Brad T. Aagaard
-#                        U.S. Geological Survey
-#
-# {LicenseText}
-#
-# ======================================================================
-#
-
-root="powertest"
-
-# ----------------------------------------------------------------------
-def setupInput(nprocs):
-  dupext = [".fuldat", ".keyval", ".prop", ".statevar", ".time"]
-  sinext = [".coord", ".connect", ".bc", ".split", ".traction"]
-
-  print "Setting up symbolic links with prefix '%s_%d':" % (root, nprocs)
-  import os
-
-  dirFiles = os.listdir(os.getcwd())
-  for ext in sinext:
-    src = "%s%s" % (root, ext)
-    dest = "%s_%s%s" % (root, nprocs, ext)
-    if not dest in dirFiles:
-      print "  %s -> %s... created" % (dest, src)
-      os.symlink(src, dest)
-    else:
-      print "  %s -> %s... already exists" % (dest, src)
-
-  for ext in dupext:
-    src = "%s%s" % (root, ext)
-    for iproc in range(nprocs):
-      dest = "%s_%s.%d%s" % (root, nprocs, iproc, ext)
-      if not dest in dirFiles:
-        print "  %s -> %s... created" % (dest, src)
-        os.symlink(src, dest)
-      else:
-        print "  %s -> %s... already exists" % (dest, src)
-  return
-
-
-# ----------------------------------------------------------------------
-def run(nprocs):
-  print "Running PyLith..."
-
-  # TODO: Replace the use of launching via 'system' with use
-  # of Leif's architecture independent utility.
-
-  cmd = "mpirun -np %d `which pylith3dapp.py` " \
-        "--typos=relaxed " \
-        "--scanner.fileRoot=%s_%d " \
-        "--scanner.asciiOutput=full " \
-        "--scanner.ucdOutput=ascii " \
-        "-log_summary -pc_type bjacobi -sub_pc_type ilu " \
-        "-ksp_monitor -ksp_view -ksp_rtol 1e-09" % (nprocs, root, nprocs)
-  import os
-  print cmd
-  os.system(cmd)
-  return
-
-
-# ----------------------------------------------------------------------
-if __name__ == "__main__":
-  from optparse import OptionParser
-
-  parser = OptionParser()
-  parser.add_option("-n", "--numprocs", dest="nprocs",
-                    type="int", metavar="NPROCS",
-                    help="Set number of processors.")
-  (options, args) = parser.parse_args()
-  if len(args) != 0:
-    parser.error("Incorrent number of arguments.")
-
-  nprocs = 1
-  if not options.nprocs is None:
-    nprocs = options.nprocs
-
-  setupInput(nprocs)
-  run(nprocs)
-
-
-# End of file

Deleted: short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/powertestesf/runex-debug.py
===================================================================
--- short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/powertestesf/runex-debug.py	2007-05-02 00:00:31 UTC (rev 6744)
+++ short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/powertestesf/runex-debug.py	2007-05-02 01:31:56 UTC (rev 6745)
@@ -1,86 +0,0 @@
-#!/usr/bin/env python
-#
-# ======================================================================
-#
-#                           Brad T. Aagaard
-#                        U.S. Geological Survey
-#
-# {LicenseText}
-#
-# ======================================================================
-#
-
-root="powertestesf"
-
-# ----------------------------------------------------------------------
-def setupInput(nprocs):
-  dupext = [".fuldat", ".keyval", ".prop", ".statevar", ".time"]
-  sinext = [".coord", ".connect", ".bc", ".split", ".traction"]
-
-  print "Setting up symbolic links with prefix '%s_%d':" % (root, nprocs)
-  import os
-
-  dirFiles = os.listdir(os.getcwd())
-  for ext in sinext:
-    src = "%s%s" % (root, ext)
-    dest = "%s_%s%s" % (root, nprocs, ext)
-    if not dest in dirFiles:
-      print "  %s -> %s... created" % (dest, src)
-      os.symlink(src, dest)
-    else:
-      print "  %s -> %s... already exists" % (dest, src)
-
-  for ext in dupext:
-    src = "%s%s" % (root, ext)
-    for iproc in range(nprocs):
-      dest = "%s_%s.%d%s" % (root, nprocs, iproc, ext)
-      if not dest in dirFiles:
-        print "  %s -> %s... created" % (dest, src)
-        os.symlink(src, dest)
-      else:
-        print "  %s -> %s... already exists" % (dest, src)
-  return
-
-
-# ----------------------------------------------------------------------
-def run(nprocs):
-  print "Running PyLith..."
-
-  # TODO: Replace the use of launching via 'system' with use
-  # of Leif's architecture independent utility.
-
-  cmd = "mpirun -np %d `which pylith3dapp.py` " \
-        "--typos=relaxed " \
-        "--scanner.fileRoot=%s_%d " \
-        "--scanner.asciiOutput=full " \
-        "--scanner.ucdOutput=ascii " \
-        "-log_summary -pc_type bjacobi -sub_pc_type ilu " \
-	"-start_in_debugger " \
-        "-ksp_monitor -ksp_view -ksp_rtol 1e-09" % (nprocs, root, nprocs)
-  import os
-  print cmd
-  os.system(cmd)
-  return
-
-
-# ----------------------------------------------------------------------
-if __name__ == "__main__":
-  from optparse import OptionParser
-
-  parser = OptionParser()
-  parser.add_option("-n", "--numprocs", dest="nprocs",
-                    type="int", metavar="NPROCS",
-                    help="Set number of processors.")
-  (options, args) = parser.parse_args()
-  if len(args) != 0:
-    parser.error("Incorrent number of arguments.")
-
-  nprocs = 1
-  if not options.nprocs is None:
-    nprocs = options.nprocs
-
-  setupInput(nprocs)
-  run(nprocs)
-
-
-# End of file

Deleted: short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/powertestesf/runex.py
===================================================================
--- short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/powertestesf/runex.py	2007-05-02 00:00:31 UTC (rev 6744)
+++ short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/linhex/powertestesf/runex.py	2007-05-02 01:31:56 UTC (rev 6745)
@@ -1,85 +0,0 @@
-#!/usr/bin/env python
-#
-# ======================================================================
-#
-#                           Brad T. Aagaard
-#                        U.S. Geological Survey
-#
-# {LicenseText}
-#
-# ======================================================================
-#
-
-root="powertestesf"
-
-# ----------------------------------------------------------------------
-def setupInput(nprocs):
-  dupext = [".fuldat", ".keyval", ".prop", ".statevar", ".time"]
-  sinext = [".coord", ".connect", ".bc", ".split", ".traction"]
-
-  print "Setting up symbolic links with prefix '%s_%d':" % (root, nprocs)
-  import os
-
-  dirFiles = os.listdir(os.getcwd())
-  for ext in sinext:
-    src = "%s%s" % (root, ext)
-    dest = "%s_%s%s" % (root, nprocs, ext)
-    if not dest in dirFiles:
-      print "  %s -> %s... created" % (dest, src)
-      os.symlink(src, dest)
-    else:
-      print "  %s -> %s... already exists" % (dest, src)
-
-  for ext in dupext:
-    src = "%s%s" % (root, ext)
-    for iproc in range(nprocs):
-      dest = "%s_%s.%d%s" % (root, nprocs, iproc, ext)
-      if not dest in dirFiles:
-        print "  %s -> %s... created" % (dest, src)
-        os.symlink(src, dest)
-      else:
-        print "  %s -> %s... already exists" % (dest, src)
-  return
-
-
-# ----------------------------------------------------------------------
-def run(nprocs):
-  print "Running PyLith..."
-
-  # TODO: Replace the use of launching via 'system' with use
-  # of Leif's architecture independent utility.
-
-  cmd = "mpirun -np %d `which pylith3dapp.py` " \
-        "--typos=relaxed " \
-        "--scanner.fileRoot=%s_%d " \
-        "--scanner.asciiOutput=full " \
-        "--scanner.ucdOutput=ascii " \
-        "-log_summary -pc_type bjacobi -sub_pc_type ilu " \
-        "-ksp_monitor -ksp_view -ksp_rtol 1e-09" % (nprocs, root, nprocs)
-  import os
-  print cmd
-  os.system(cmd)
-  return
-
-
-# ----------------------------------------------------------------------
-if __name__ == "__main__":
-  from optparse import OptionParser
-
-  parser = OptionParser()
-  parser.add_option("-n", "--numprocs", dest="nprocs",
-                    type="int", metavar="NPROCS",
-                    help="Set number of processors.")
-  (options, args) = parser.parse_args()
-  if len(args) != 0:
-    parser.error("Incorrent number of arguments.")
-
-  nprocs = 1
-  if not options.nprocs is None:
-    nprocs = options.nprocs
-
-  setupInput(nprocs)
-  run(nprocs)
-
-
-# End of file



More information about the cig-commits mailing list