[cig-commits] r21191 - seismo/3D/SPECFEM3D/trunk/utils/Cluster/pbs
carltape at geodynamics.org
carltape at geodynamics.org
Mon Dec 24 12:10:37 PST 2012
Author: carltape
Date: 2012-12-24 12:10:37 -0800 (Mon, 24 Dec 2012)
New Revision: 21191
Modified:
seismo/3D/SPECFEM3D/trunk/utils/Cluster/pbs/go_decomposer_pbs.bash
seismo/3D/SPECFEM3D/trunk/utils/Cluster/pbs/go_generate_databases_pbs.bash
seismo/3D/SPECFEM3D/trunk/utils/Cluster/pbs/go_solver_pbs.bash
Log:
run scripts: removed redundant $numnodes and added connection to LOCAL_PATH variable in Par_file
Modified: seismo/3D/SPECFEM3D/trunk/utils/Cluster/pbs/go_decomposer_pbs.bash
===================================================================
--- seismo/3D/SPECFEM3D/trunk/utils/Cluster/pbs/go_decomposer_pbs.bash 2012-12-23 22:55:05 UTC (rev 21190)
+++ seismo/3D/SPECFEM3D/trunk/utils/Cluster/pbs/go_decomposer_pbs.bash 2012-12-24 20:10:37 UTC (rev 21191)
@@ -25,9 +25,11 @@
# compute total number of nodes needed
NPROC=`grep NPROC DATA/Par_file | cut -d = -f 2 `
-# total number of nodes is the product of the values read
-numnodes=$NPROC
+# path to database files for mesh (relative to bin/)
+LOCALPATH=`grep LOCAL_PATH DATA/Par_file | cut -d = -f 2 `
+mkdir -p $LOCALPATH
+
echo starting decomposer for $numnodes partitions
echo " "
@@ -38,6 +40,6 @@
MESHDIR=examples/homogeneous_halfspace_HEX8/MESH/
cd bin/
-./xdecompose_mesh $numnodes ../$MESHDIR ../OUTPUT_FILES/DATABASES_MPI/
+./xdecompose_mesh $numnodes ../$MESHDIR $LOCALPATH/
echo "done "
Modified: seismo/3D/SPECFEM3D/trunk/utils/Cluster/pbs/go_generate_databases_pbs.bash
===================================================================
--- seismo/3D/SPECFEM3D/trunk/utils/Cluster/pbs/go_generate_databases_pbs.bash 2012-12-23 22:55:05 UTC (rev 21190)
+++ seismo/3D/SPECFEM3D/trunk/utils/Cluster/pbs/go_generate_databases_pbs.bash 2012-12-24 20:10:37 UTC (rev 21191)
@@ -25,9 +25,6 @@
# compute total number of nodes needed
NPROC=`grep NPROC DATA/Par_file | cut -d = -f 2 `
-# total number of nodes is the product of the values read
-numnodes=$NPROC
-
mkdir -p OUTPUT_FILES
# backup files used for this simulation
@@ -47,13 +44,16 @@
sleep 2
cd bin/
-mpiexec -np $numnodes ./xgenerate_databases
+mpiexec -np $NPROC ./xgenerate_databases
echo "done "
-# per instructions in manual, view low-res mesh with these commands (replace 143 with nproc-1):
+# per instructions in manual, view low-res mesh with these commands
+# > NPROC=`grep NPROC DATA/Par_file | cut -d = -f 2 `
+# > LOCALPATH=`grep LOCAL_PATH DATA/Par_file | cut -d = -f 2 `
+# > nmax=$(($NPROC-1))
# > make xcombine_vol_data
# > cd bin/
-# > ./xcombine_vol_data 0 143 vs ../OUTPUT_FILES/DATABASES_MPI/ ../OUTPUT_FILES 0
-# > cd ../OUTPUT_FILES
-# > paraview &
+# > ./xcombine_vol_data 0 $nmax vs $LOCALPATH/ $LOCALPATH 0
+# > cd $LOCALPATH
+# > paraview &
\ No newline at end of file
Modified: seismo/3D/SPECFEM3D/trunk/utils/Cluster/pbs/go_solver_pbs.bash
===================================================================
--- seismo/3D/SPECFEM3D/trunk/utils/Cluster/pbs/go_solver_pbs.bash 2012-12-23 22:55:05 UTC (rev 21190)
+++ seismo/3D/SPECFEM3D/trunk/utils/Cluster/pbs/go_solver_pbs.bash 2012-12-24 20:10:37 UTC (rev 21191)
@@ -25,9 +25,6 @@
# compute total number of nodes needed
NPROC=`grep NPROC DATA/Par_file | cut -d = -f 2 `
-# total number of nodes is the product of the values read
-numnodes=$NPROC
-
mkdir -p OUTPUT_FILES
# backup files used for this simulation
@@ -50,7 +47,7 @@
sleep 2
cd bin/
-mpiexec -np $numnodes ./xspecfem3D
+mpiexec -np $NPROC ./xspecfem3D
cp ../DATA/STATIONS_FILTERED ../OUTPUT_FILES/
More information about the CIG-COMMITS
mailing list