[cig-commits] [commit] devel: added run_this_example.sh for EXAMPLES/small_benchmark_run_to_test_very_simple_Earth and EXAMPLES/small_benchmark_run_to_test_more_complex_Earth (0d505ae)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Mon Dec 8 16:03:55 PST 2014


Repository : https://github.com/geodynamics/specfem3d_globe

On branch  : devel
Link       : https://github.com/geodynamics/specfem3d_globe/compare/d2a8da4566dfdd6a13b8751542f84febb1da009e...0d505ae9902d4a7aabe1d961086675f7aad9162d

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

commit 0d505ae9902d4a7aabe1d961086675f7aad9162d
Author: Dimitri Komatitsch <komatitsch at lma.cnrs-mrs.fr>
Date:   Tue Dec 9 00:57:56 2014 +0100

    added run_this_example.sh for EXAMPLES/small_benchmark_run_to_test_very_simple_Earth and EXAMPLES/small_benchmark_run_to_test_more_complex_Earth


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

0d505ae9902d4a7aabe1d961086675f7aad9162d
 .../run_mesher_solver.bash                         |  9 ++-----
 .../run_this_example.sh                            | 28 ++++++++++++----------
 .../run_mesher_solver.bash                         |  9 ++-----
 .../run_this_example.sh                            | 28 ++++++++++++----------
 4 files changed, 36 insertions(+), 38 deletions(-)

diff --git a/EXAMPLES/regional_Greece_small/run_mesher_solver.bash b/EXAMPLES/small_benchmark_run_to_test_more_complex_Earth/run_mesher_solver.bash
similarity index 91%
copy from EXAMPLES/regional_Greece_small/run_mesher_solver.bash
copy to EXAMPLES/small_benchmark_run_to_test_more_complex_Earth/run_mesher_solver.bash
index 0e386df..e123a94 100755
--- a/EXAMPLES/regional_Greece_small/run_mesher_solver.bash
+++ b/EXAMPLES/small_benchmark_run_to_test_more_complex_Earth/run_mesher_solver.bash
@@ -3,8 +3,8 @@
 ###########################################################
 # USER PARAMETERS
 
-## 4 CPUs 
-CPUs=4
+## CPUs 
+CPUs=24
 
 ###########################################################
 
@@ -33,7 +33,6 @@ cp DATA/Par_file OUTPUT_FILES/
 cp DATA/STATIONS OUTPUT_FILES/
 cp DATA/CMTSOLUTION OUTPUT_FILES/
 
-
 ##
 ## mesh generation
 ##
@@ -57,10 +56,6 @@ cp OUTPUT_FILES/*.txt $BASEMPIDIR/
 ## forward simulation
 ##
 
-# set up addressing
-#cp $BASEMPIDIR/addr*.txt OUTPUT_FILES/
-#cp $BASEMPIDIR/list*.txt OUTPUT_FILES/
-
 sleep 2
 
 echo
diff --git a/EXAMPLES/regional_Greece_small/run_this_example.sh b/EXAMPLES/small_benchmark_run_to_test_more_complex_Earth/run_this_example.sh
similarity index 91%
copy from EXAMPLES/regional_Greece_small/run_this_example.sh
copy to EXAMPLES/small_benchmark_run_to_test_more_complex_Earth/run_this_example.sh
index bf1364f..e536cf9 100755
--- a/EXAMPLES/regional_Greece_small/run_this_example.sh
+++ b/EXAMPLES/small_benchmark_run_to_test_more_complex_Earth/run_this_example.sh
@@ -28,12 +28,25 @@ mkdir -p OUTPUT_FILES
 rm -rf DATABASES_MPI/*
 rm -rf OUTPUT_FILES/*
 
+# links data directories needed to run example in this current directory with s362ani
+rm -rf DATA
+mkdir -p DATA
+cd DATA/
+ln -s ../Par_file
+ln -s ../CMTSOLUTION
+ln -s ../STATIONS
+ln -s ../../../DATA/crust2.0
+ln -s ../../../DATA/s362ani
+ln -s ../../../DATA/QRFSI12
+ln -s ../../../DATA/topo_bathy
+cd ../
+
 # compiles executables in root directory
 # using default configuration
+cp DATA/Par_file ../../DATA
 cd ../../
-
-# compiles for a forward simulation
-cp $currentdir/DATA/Par_file DATA/Par_file
+make clean
+make all
 
 # backup of constants setup
 cp setup/* $currentdir/OUTPUT_FILES/
@@ -49,20 +62,11 @@ cp ../../bin/xmeshfem3D ./bin/
 cp ../../bin/xspecfem3D ./bin/
 cp ../../bin/xcombine_vol_data ./bin/
 
-# links data directories needed to run example in this current directory with s362ani
-cd DATA/
-ln -s ../../../DATA/crust2.0
-ln -s ../../../DATA/s362ani
-ln -s ../../../DATA/QRFSI12
-ln -s ../../../DATA/topo_bathy
-cd ../
-
 # run mesher & solver
 echo
 echo "  running script..."
 echo
 ./run_mesher_solver.bash
 
-
 echo `date`
 
diff --git a/EXAMPLES/regional_Greece_small/run_mesher_solver.bash b/EXAMPLES/small_benchmark_run_to_test_very_simple_Earth/run_mesher_solver.bash
similarity index 91%
copy from EXAMPLES/regional_Greece_small/run_mesher_solver.bash
copy to EXAMPLES/small_benchmark_run_to_test_very_simple_Earth/run_mesher_solver.bash
index 0e386df..e123a94 100755
--- a/EXAMPLES/regional_Greece_small/run_mesher_solver.bash
+++ b/EXAMPLES/small_benchmark_run_to_test_very_simple_Earth/run_mesher_solver.bash
@@ -3,8 +3,8 @@
 ###########################################################
 # USER PARAMETERS
 
-## 4 CPUs 
-CPUs=4
+## CPUs 
+CPUs=24
 
 ###########################################################
 
@@ -33,7 +33,6 @@ cp DATA/Par_file OUTPUT_FILES/
 cp DATA/STATIONS OUTPUT_FILES/
 cp DATA/CMTSOLUTION OUTPUT_FILES/
 
-
 ##
 ## mesh generation
 ##
@@ -57,10 +56,6 @@ cp OUTPUT_FILES/*.txt $BASEMPIDIR/
 ## forward simulation
 ##
 
-# set up addressing
-#cp $BASEMPIDIR/addr*.txt OUTPUT_FILES/
-#cp $BASEMPIDIR/list*.txt OUTPUT_FILES/
-
 sleep 2
 
 echo
diff --git a/EXAMPLES/regional_Greece_small/run_this_example.sh b/EXAMPLES/small_benchmark_run_to_test_very_simple_Earth/run_this_example.sh
similarity index 91%
copy from EXAMPLES/regional_Greece_small/run_this_example.sh
copy to EXAMPLES/small_benchmark_run_to_test_very_simple_Earth/run_this_example.sh
index bf1364f..e536cf9 100755
--- a/EXAMPLES/regional_Greece_small/run_this_example.sh
+++ b/EXAMPLES/small_benchmark_run_to_test_very_simple_Earth/run_this_example.sh
@@ -28,12 +28,25 @@ mkdir -p OUTPUT_FILES
 rm -rf DATABASES_MPI/*
 rm -rf OUTPUT_FILES/*
 
+# links data directories needed to run example in this current directory with s362ani
+rm -rf DATA
+mkdir -p DATA
+cd DATA/
+ln -s ../Par_file
+ln -s ../CMTSOLUTION
+ln -s ../STATIONS
+ln -s ../../../DATA/crust2.0
+ln -s ../../../DATA/s362ani
+ln -s ../../../DATA/QRFSI12
+ln -s ../../../DATA/topo_bathy
+cd ../
+
 # compiles executables in root directory
 # using default configuration
+cp DATA/Par_file ../../DATA
 cd ../../
-
-# compiles for a forward simulation
-cp $currentdir/DATA/Par_file DATA/Par_file
+make clean
+make all
 
 # backup of constants setup
 cp setup/* $currentdir/OUTPUT_FILES/
@@ -49,20 +62,11 @@ cp ../../bin/xmeshfem3D ./bin/
 cp ../../bin/xspecfem3D ./bin/
 cp ../../bin/xcombine_vol_data ./bin/
 
-# links data directories needed to run example in this current directory with s362ani
-cd DATA/
-ln -s ../../../DATA/crust2.0
-ln -s ../../../DATA/s362ani
-ln -s ../../../DATA/QRFSI12
-ln -s ../../../DATA/topo_bathy
-cd ../
-
 # run mesher & solver
 echo
 echo "  running script..."
 echo
 ./run_mesher_solver.bash
 
-
 echo `date`
 



More information about the CIG-COMMITS mailing list