[cig-commits] [commit] devel, master: updated README for meshfem3D examples (3788601)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Wed Jun 18 16:48:29 PDT 2014


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

On branches: devel,master
Link       : https://github.com/geodynamics/specfem3d/compare/6026e367984905ab133865f62fa6293b343759b9...47f703851338234f96397e7da9fbff63d8178b8a

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

commit 37886012cae490fd11ee6cb9e9eed0f2d1e1b9d1
Author: Carl Tape <carltape at gi.alaska.edu>
Date:   Tue Mar 8 23:41:38 2011 +0000

    updated README for meshfem3D examples


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

37886012cae490fd11ee6cb9e9eed0f2d1e1b9d1
 meshfem3D_examples/many_interfaces/README        |  67 +++++++++++++++++-
 meshfem3D_examples/simple_model/README           |  83 +++++++++++++++++++++--
 meshfem3D_examples/simple_model/simple_model.png | Bin 0 -> 151726 bytes
 3 files changed, 143 insertions(+), 7 deletions(-)

diff --git a/meshfem3D_examples/many_interfaces/README b/meshfem3D_examples/many_interfaces/README
index 6b0036a..66e90e2 100644
--- a/meshfem3D_examples/many_interfaces/README
+++ b/meshfem3D_examples/many_interfaces/README
@@ -1,8 +1,69 @@
 ----------------------------------------------------------------------
 README
+(/SPECFEM3D/examples/meshfem3D_examples/many_interfaces/README)
 ----------------------------------------------------------------------
 
-To try this example, copy all the files within this folder to 'in_data_files/meshfem3D_files/'
-in the SPECFEM3D root directory.
+This is a more complicated example to explain the use of the internal mesher meshfem3D.
 
-Then you can compile and run xmeshfem3D.
+Option 1: run process.sh from local directory (must have access to mpi)
+Option 2: follow instructions below for submitting separate jobs with qsub (or bsub)
+
+----------------------------------------------------------------------
+
+0. Run the simple example under examples/meshfem3D_examples/simple_model
+
+1. Set up input files.
+
+   > cd SPECFEM3D
+   > rsync -av examples/meshfem3D_examples/many_interfaces/ in_data_files/meshfem3D_files/
+
+   > cd in_data_files/meshfem3D_files/
+   > cp Par_file CMTSOLUTION STATIONS ..
+   > cd SPECFEM3D
+
+   - adapt the submission scripts for the appropriate queues and number of cores:
+     go_mesher_pbs.bash, go_generate_databases_pbs.bash, go_solver_pbs.bash
+
+   - note: go_decomposer_pbs.bash is not used with the internal mesher
+
+2. compile and run internal mesher 
+
+   > make xmeshfem3D
+
+   > qsub go_mesher_pbs.bash
+
+   - this should generate "proc000***_Database" files in in_out_files/DATABASES_MPI/.
+
+   - save output file
+   > cp in_out_files/OUTPUT_FILES/output_mesher.txt in_out_files/OUTPUT_FILES/output_meshfem3D.txt
+
+3. generate databases:
+
+   - compile generate_databases in directory SPECFEM3D/:
+     > make xgenerate_databases
+
+   - submit job script:
+     > qsub go_generate_databases_pbs.bash
+
+     this job will take about XX minutes and will create binary mesh files, 
+     e.g. "proc000***_external_mesh.bin", in directory in_out_files/DATABASES_MPI/.
+
+     Optional: If you have paraview, load the .vtk files (see simple_model.png).
+
+4. run simulation:
+
+   - compile specfem3D:
+     > make xspecfem3D
+
+   - submit job script:
+     > qsub go_solver_pbs.bash
+
+   - the job should take about 70 minutes
+   - when the job is complete, you should have 3 sets (semd,semv,sema)
+     of XX (ls -1 *semd | wc) seismogram files in the directory in_out_files/OUTPUT_FILES,
+     as well as XX timestamp****** files
+
+   - view seismograms, for example, using xmgrace:
+   - xmgrace XXX &
+
+----------------------------------------------------------------------
diff --git a/meshfem3D_examples/simple_model/README b/meshfem3D_examples/simple_model/README
index cb20a91..9ce22ad 100644
--- a/meshfem3D_examples/simple_model/README
+++ b/meshfem3D_examples/simple_model/README
@@ -1,10 +1,85 @@
 ----------------------------------------------------------------------
 README
+(/SPECFEM3D/examples/meshfem3D_examples/simple_model/README)
 ----------------------------------------------------------------------
 
-This is a very simple example to explain the use of meshfem3D.
+This is a very simple example to explain the use of the internal mesher meshfem3D.
 
-To try this example, copy all the files within this folder to 'in_data_files/meshfem3D_files/'
-in the SPECFEM3D root directory.
+Option 1: run process.sh from local directory (must have access to mpi)
+Option 2: follow instructions below for submitting separate jobs with qsub (or bsub)
 
-Then you can compile and run xmeshfem3D.
+----------------------------------------------------------------------
+
+0. Run the default homogeneous halfspace example (external mesh).
+
+1. Set up input files.
+
+   > cd SPECFEM3D
+   > rsync -av examples/meshfem3D_examples/simple_model/ in_data_files/meshfem3D_files/
+
+   > cd in_data_files/meshfem3D_files/
+   > cp Par_file CMTSOLUTION STATIONS ..
+   > cd SPECFEM3D
+
+   - adapt the submission scripts for the appropriate queues and number of cores:
+     go_mesher_pbs.bash, go_generate_databases_pbs.bash, go_solver_pbs.bash
+
+   - note: go_decomposer_pbs.bash is not used with the internal mesher
+
+2. compile and run internal mesher 
+
+   > make xmeshfem3D
+
+   > qsub go_mesher_pbs.bash
+
+   This should generate these files in in_out_files/DATABASES_MPI/:
+
+   proc000000_Database
+   proc000000_.dx
+   proc000000_.INP
+   proc000001_Database
+   proc000001_.dx
+   proc000001_.INP
+   proc000002_Database
+   proc000002_.dx
+   proc000002_.INP
+   proc000003_Database
+   proc000003_.dx
+   proc000003_.INP
+
+   - save output file
+   > cp in_out_files/OUTPUT_FILES/output_mesher.txt in_out_files/OUTPUT_FILES/output_meshfem3D.txt
+
+3. generate databases:
+
+   - compile generate_databases in directory SPECFEM3D/:
+     > make xgenerate_databases
+
+   - submit job script:
+     > qsub go_generate_databases_pbs.bash
+
+     this will create binary mesh files, e.g. "proc000***_external_mesh.bin"
+     in directory in_out_files/DATABASES_MPI/.
+
+     Optional: If you have paraview, load the .vtk files (see simple_model.png).
+
+4. run simulation:
+
+   - compile specfem3D:
+     > make xspecfem3D
+
+   - submit job script:
+     > qsub go_solver_pbs.bash
+
+   - the job should take about 10 minutes
+   - when the job is complete, you should have 3 sets (semd,semv,sema)
+     of 27 (ls -1 *semd | wc) seismogram files in the directory in_out_files/OUTPUT_FILES,
+     as well as 5 timestamp****** files
+
+   - view seismograms, for example, using xmgrace:
+   - xmgrace K400.CE.BXZ.semd K851.CE.BXZ.semd K853.CE.BXZ.semd &
+
+   - compare with reference seismograms in
+     examples/meshfem3D_examples/simple_model/REF_SEIS/
+
+----------------------------------------------------------------------
diff --git a/meshfem3D_examples/simple_model/simple_model.png b/meshfem3D_examples/simple_model/simple_model.png
new file mode 100644
index 0000000..463af8e
Binary files /dev/null and b/meshfem3D_examples/simple_model/simple_model.png differ



More information about the CIG-COMMITS mailing list