[cig-commits] r15321 - short/3D/PyLith/trunk/examples

brad at geodynamics.org brad at geodynamics.org
Wed Jun 17 10:57:59 PDT 2009


Author: brad
Date: 2009-06-17 10:57:59 -0700 (Wed, 17 Jun 2009)
New Revision: 15321

Added:
   short/3D/PyLith/trunk/examples/run_examples.sh
Log:
Added shell script to run all examples.

Added: short/3D/PyLith/trunk/examples/run_examples.sh
===================================================================
--- short/3D/PyLith/trunk/examples/run_examples.sh	                        (rev 0)
+++ short/3D/PyLith/trunk/examples/run_examples.sh	2009-06-17 17:57:59 UTC (rev 15321)
@@ -0,0 +1,82 @@
+#!/bin/bash
+
+# Run all of the examples. Execute this script from the examples
+# directory.
+
+examples_dir=`pwd`
+
+# Run specified list of examples
+run_examples() {
+  cd ${examples_dir}/$dir
+  rm *.vtk
+  if [ -d output ]; then rm output/*.vtk; fi
+  for example in $examples; do
+    echo "RUNNING $dir/$example"
+    pylith $example
+  done
+}
+
+# ----------------------------------------------------------------------
+# twotri3
+dir="twocells/twotri3"
+examples="axialdisp.cfg sheardisp.cfg dislocation.cfg"
+run_examples
+
+# twoquad4
+dir="twocells/twoquad4"
+examples="axialdisp.cfg sheardisp.cfg axialtract.cfg dislocation.cfg"
+run_examples
+
+# twotet4
+dir="twocells/twotet4"
+examples="axialdisp.cfg dislocation.cfg"
+run_examples
+
+# twohex8
+dir="twocells/twohex8"
+examples="axialdisp.cfg sheardisp.cfg dislocation.cfg"
+run_examples
+
+# twotet4-geoproj
+dir="twocells/twotet4-geoproj"
+examples="dislocation.cfg"
+run_examples
+
+# ----------------------------------------------------------------------
+# 3d/tet4
+dir="3d/tet4"
+examples="shearxy.cfg dislocation.cfg"
+run_examples
+
+# 3d/hex8
+dir="3d/hex8"
+examples="shearxy.cfg dislocation.cfg gravity.cfg gravity_istress.cfg savageprescott.cfg"
+run_examples
+
+# ----------------------------------------------------------------------
+# bar_shearwave/tri3
+dir="bar_shearwave/tri3"
+examples="pylithapp.cfg"
+run_examples
+
+# bar_shearwave/quad4
+dir="bar_shearwave/quad4"
+examples="pylithapp.cfg"
+run_examples
+
+# bar_shearwave/tet4
+dir="bar_shearwave/tet4"
+examples="pylithapp.cfg"
+run_examples
+
+# bar_shearwave/hex8
+dir="bar_shearwave/hex8"
+examples="pylithapp.cfg"
+run_examples
+
+
+
+# Return to examples dir
+cd ${examples_dir}
+  
+exit 0


Property changes on: short/3D/PyLith/trunk/examples/run_examples.sh
___________________________________________________________________
Name: svn:executable
   + *



More information about the CIG-COMMITS mailing list