[cig-commits] [commit] devel, master: updates scripts in EXAMPLES/global_s362ani (ec60183)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Wed Jun 18 16:15:23 PDT 2014


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

On branches: devel,master
Link       : https://github.com/geodynamics/specfem3d_globe/compare/85a8aa3a48b2cf0d9164893edb252f3fe0f28585...1bc4138645fec5dc69d2dcc94a048c7330439566

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

commit ec60183a14c146ad682acebf1eda31e0781cd1c0
Author: Daniel Peter <peterda at ethz.ch>
Date:   Thu Mar 3 16:12:34 2011 +0000

    updates scripts in EXAMPLES/global_s362ani


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

ec60183a14c146ad682acebf1eda31e0781cd1c0
 global_s362ani/DATA/Par_file                    |   2 +-
 global_s362ani/README                           |  19 ++++++++++++++++++-
 global_s362ani/go_mesher_solver_pbs.kernel.bash |   3 +++
 global_s362ani/process.kernel.sh                |   2 +-
 global_s362ani/process.sh                       |   2 +-
 global_s362ani/state_beta_kernel.jpg            | Bin 0 -> 102082 bytes
 global_s362ani/state_rho_kernel.jpg             | Bin 0 -> 99365 bytes
 regional_MiddleEast/process.kernel.sh           |   2 +-
 8 files changed, 25 insertions(+), 5 deletions(-)

diff --git a/global_s362ani/DATA/Par_file b/global_s362ani/DATA/Par_file
index a117e01..4697325 100644
--- a/global_s362ani/DATA/Par_file
+++ b/global_s362ani/DATA/Par_file
@@ -1,6 +1,6 @@
 
 # forward or adjoint simulation
-SIMULATION_TYPE                 = 3
+SIMULATION_TYPE                 = 1
 NOISE_TOMOGRAPHY                = 0        # flag of noise tomography, three steps (1,2,3). If earthquake simulation, set it to 0.
 SAVE_FORWARD                    = .false.  # save last frame of forward simulation or not
 
diff --git a/global_s362ani/README b/global_s362ani/README
index 178e688..8c72f0a 100644
--- a/global_s362ani/README
+++ b/global_s362ani/README
@@ -3,7 +3,10 @@ README
 ----------------------------------------------------------
 
 This example creates a global mesh using model S263ANI 
-and runs a single forward simulation.
+and runs a spectral-element simulation.
+
+1. forward simulation:
+----------------------
 
 type:
 ./process.sh
@@ -14,5 +17,19 @@ PBS-job script "go_mesher_solver_pbs.bash".
 The simulation is accurate down to a shortest period of ~ 18 s.
 Reference seismograms for comparions are provided in the directory: REF_SEIS/
 
+
+2. kernel simulation:
+---------------------
+
+type:
+./process.kernel.sh
+
+to setup this directory for the simulation and to submit a corresponding
+PBS-job script "go_mesher_solver_pbs.kernel.bash".
+
+The simulation will use the adjoint source given in directory: SEM/
+to compute a travel-time sensitivity kernel.
+
+
 Please modify these scripts according to your specifics.
 
diff --git a/global_s362ani/go_mesher_solver_pbs.kernel.bash b/global_s362ani/go_mesher_solver_pbs.kernel.bash
index fee35d6..8b0b308 100755
--- a/global_s362ani/go_mesher_solver_pbs.kernel.bash
+++ b/global_s362ani/go_mesher_solver_pbs.kernel.bash
@@ -62,6 +62,7 @@ cp OUTPUT_FILES/*.txt $BASEMPIDIR/
 ## forward simulation
 ## (saving last wavefields)
 ##
+cp DATA/Par_file DATA/Par_file.org
 ./change_simulation_type.pl -F
 sleep 2
 # set up addressing
@@ -101,6 +102,8 @@ mpiexec -np $numnodes $PWD/bin/xspecfem3D.kernel
 echo "  adjoint run done: `date`"
 echo
 
+# restore original Par_file
+mv DATA/Par_file.org DATA/Par_file
 
 echo "finished successfully"
 echo `date`
diff --git a/global_s362ani/process.kernel.sh b/global_s362ani/process.kernel.sh
index ea91d10..efd1353 100755
--- a/global_s362ani/process.kernel.sh
+++ b/global_s362ani/process.kernel.sh
@@ -53,7 +53,7 @@ cp DATA/Par_file $currentdir/OUTPUT_FILES/
 cd $currentdir
 
 # copy executables
-mkdir -p bin/
+mkdir -p bin
 cp ../../bin/xmeshfem3D ./bin/
 cp ../../bin/xspecfem3D ./bin/xspecfem3D.kernel
 cp ../../bin/xcombine_vol_data ./bin/
diff --git a/global_s362ani/process.sh b/global_s362ani/process.sh
index df76926..32c1ad8 100755
--- a/global_s362ani/process.sh
+++ b/global_s362ani/process.sh
@@ -47,7 +47,7 @@ cp DATA/Par_file $currentdir/OUTPUT_FILES/
 cd $currentdir
 
 # copy executables
-mkdir -p bin/
+mkdir -p bin
 cp ../../bin/xmeshfem3D ./bin/
 cp ../../bin/xspecfem3D ./bin/
 
diff --git a/global_s362ani/state_beta_kernel.jpg b/global_s362ani/state_beta_kernel.jpg
new file mode 100644
index 0000000..2ba2b48
Binary files /dev/null and b/global_s362ani/state_beta_kernel.jpg differ
diff --git a/global_s362ani/state_rho_kernel.jpg b/global_s362ani/state_rho_kernel.jpg
new file mode 100644
index 0000000..892c973
Binary files /dev/null and b/global_s362ani/state_rho_kernel.jpg differ
diff --git a/regional_MiddleEast/process.kernel.sh b/regional_MiddleEast/process.kernel.sh
index e50d5d3..21e3e64 100755
--- a/regional_MiddleEast/process.kernel.sh
+++ b/regional_MiddleEast/process.kernel.sh
@@ -53,7 +53,7 @@ cp DATA/Par_file $currentdir/OUTPUT_FILES/
 cd $currentdir
 
 # copy executables
-mkdir -p bin/
+mkdir -p bin
 cp ../../bin/xmeshfem3D ./bin/
 cp ../../bin/xspecfem3D ./bin/xspecfem3D.kernel
 cp ../../bin/xcombine_vol_data ./bin/



More information about the CIG-COMMITS mailing list