[cig-commits] r3857 -
short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/lintet/bm1a
willic3 at geodynamics.org
willic3 at geodynamics.org
Fri Jun 23 07:29:07 PDT 2006
Author: willic3
Date: 2006-06-23 07:29:06 -0700 (Fri, 23 Jun 2006)
New Revision: 3857
Added:
short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/lintet/bm1a/runbm1a-debug.sh
short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/lintet/bm1a/runbm1a-test.sh
short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/lintet/bm1a/runbm1a.sh
Log:
Put in simple shell scripts to run the problem based on Brad's script.
We probably still need to put in something like a 'make clean'.
Added: short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/lintet/bm1a/runbm1a-debug.sh
===================================================================
--- short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/lintet/bm1a/runbm1a-debug.sh 2006-06-23 13:50:49 UTC (rev 3856)
+++ short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/lintet/bm1a/runbm1a-debug.sh 2006-06-23 14:29:06 UTC (rev 3857)
@@ -0,0 +1,57 @@
+#!/bin/bash
+# ======================================================================
+#
+# Shell script to run PyLith in tutorial using SCEC benchmark 5.
+#
+# ======================================================================
+
+if [ $# != 1 ]; then
+ echo "usage: runbm1a.sh NPROCS"
+ exit 1
+fi
+nprocs=$1
+
+simroot="bm1a"
+dupext="fuldat prop statevar time"
+sinext="coord connect bc split"
+
+pyreflags="-typos=relaxed"
+echo "Pyre flags:"
+echo $pyreflags
+
+pylithflags="-pl3dscan.fileRoot=${simroot}_$nprocs \
+ -pl3dscan.asciiOutput=full \
+ -pl3dscan.ucdOutput=ascii"
+# Do not use pythonTimestep for now until all the bugs are worked out.
+# -pl3dscan.ucdOutput=ascii \
+# -pl3dscan.pythonTimestep=1 "
+echo "PyLith flags:"
+echo $pylithflags
+
+petscflags="-log_summary \
+ -pc_type bjacobi \
+ -sub_pc_type ilu \
+ -ksp_monitor \
+ -ksp_view \
+ -ksp_rtol 1e-09 \
+ -start_in_debugger"
+echo "PETSc flags:"
+echo $petscflags
+
+echo "Setting up symbolic links with prefix ${simroot}_${nprocs}..."
+for ext in $sinext; do
+ ln -s $simroot.$ext ${simroot}_$nprocs.$ext
+done
+for ext in $dupext; do
+ for (( i=0; i < $nprocs; i+=1 )); do
+ ln -s $simroot.$ext ${simroot}_$nprocs.$i.$ext
+ done
+done
+
+echo "Running PyLith..."
+cmd="mpiexec -np $nprocs pylith3dapp.py $pyreflags $pylithflags $petscflags"
+
+echo $cmd
+eval $cmd
+
+# end of file
Property changes on: short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/lintet/bm1a/runbm1a-debug.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/lintet/bm1a/runbm1a-test.sh
===================================================================
--- short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/lintet/bm1a/runbm1a-test.sh 2006-06-23 13:50:49 UTC (rev 3856)
+++ short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/lintet/bm1a/runbm1a-test.sh 2006-06-23 14:29:06 UTC (rev 3857)
@@ -0,0 +1,55 @@
+#!/bin/bash
+# ======================================================================
+#
+# Shell script to run PyLith in tutorial using SCEC benchmark 5.
+#
+# ======================================================================
+
+if [ $# != 1 ]; then
+ echo "usage: runbm1a.sh NPROCS"
+ exit 1
+fi
+nprocs=$1
+
+simroot="bm1a"
+dupext="fuldat prop statevar time"
+sinext="coord connect bc split"
+
+pyreflags="-typos=relaxed"
+echo "Pyre flags:"
+echo $pyreflags
+
+pylithflags="-pl3dscan.fileRoot=${simroot}_$nprocs \
+ -pl3dscan.asciiOutput=echo \
+ -pl3dscan.ucdOutput=ascii"
+# Do not use pythonTimestep for now until all the bugs are worked out.
+# -pl3dscan.ucdOutput=ascii \
+# -pl3dscan.pythonTimestep=1 "
+echo "PyLith flags:"
+echo $pylithflags
+
+petscflags="-log_summary \
+ -pc_type bjacobi \
+ -sub_pc_type ilu \
+ -ksp_monitor \
+ -ksp_rtol 1e-09"
+echo "PETSc flags:"
+echo $petscflags
+
+echo "Setting up symbolic links with prefix ${simroot}_${nprocs}..."
+for ext in $sinext; do
+ ln -s $simroot.$ext ${simroot}_$nprocs.$ext
+done
+for ext in $dupext; do
+ for (( i=0; i < $nprocs; i+=1 )); do
+ ln -s $simroot.$ext ${simroot}_$nprocs.$i.$ext
+ done
+done
+
+echo "Running PyLith..."
+cmd="mpiexec -np $nprocs pylith3dapp.py $pyreflags $pylithflags $petscflags"
+
+echo $cmd
+eval $cmd
+
+# end of file
Property changes on: short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/lintet/bm1a/runbm1a-test.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/lintet/bm1a/runbm1a.sh
===================================================================
--- short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/lintet/bm1a/runbm1a.sh 2006-06-23 13:50:49 UTC (rev 3856)
+++ short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/lintet/bm1a/runbm1a.sh 2006-06-23 14:29:06 UTC (rev 3857)
@@ -0,0 +1,55 @@
+#!/bin/bash
+# ======================================================================
+#
+# Shell script to run PyLith in tutorial using SCEC benchmark 5.
+#
+# ======================================================================
+
+if [ $# != 1 ]; then
+ echo "usage: runbm1a.sh NPROCS"
+ exit 1
+fi
+nprocs=$1
+
+simroot="bm1a"
+dupext="fuldat prop statevar time"
+sinext="coord connect bc split"
+
+pyreflags="-typos=relaxed"
+echo "Pyre flags:"
+echo $pyreflags
+
+pylithflags="-pl3dscan.fileRoot=${simroot}_$nprocs \
+ -pl3dscan.asciiOutput=none \
+ -pl3dscan.ucdOutput=binary"
+# Do not use pythonTimestep for now until all the bugs are worked out.
+# -pl3dscan.ucdOutput=ascii \
+# -pl3dscan.pythonTimestep=1 "
+echo "PyLith flags:"
+echo $pylithflags
+
+petscflags="-log_summary \
+ -pc_type bjacobi \
+ -sub_pc_type ilu \
+ -ksp_monitor \
+ -ksp_rtol 1e-09"
+echo "PETSc flags:"
+echo $petscflags
+
+echo "Setting up symbolic links with prefix ${simroot}_${nprocs}..."
+for ext in $sinext; do
+ ln -s $simroot.$ext ${simroot}_$nprocs.$ext
+done
+for ext in $dupext; do
+ for (( i=0; i < $nprocs; i+=1 )); do
+ ln -s $simroot.$ext ${simroot}_$nprocs.$i.$ext
+ done
+done
+
+echo "Running PyLith..."
+cmd="mpiexec -np $nprocs pylith3dapp.py $pyreflags $pylithflags $petscflags"
+
+echo $cmd
+eval $cmd
+
+# end of file
Property changes on: short/3D/PyLith/branches/pylith-0.8/pylith3d/examples/lintet/bm1a/runbm1a.sh
___________________________________________________________________
Name: svn:executable
+ *
More information about the Cig-commits
mailing list