[cig-commits] r21058 - seismo/2D/SPECFEM2D/trunk/EXAMPLES/salt_dome/Stacey_normal

xie.zhinan at geodynamics.org xie.zhinan at geodynamics.org
Tue Nov 20 07:11:35 PST 2012


Author: xie.zhinan
Date: 2012-11-20 07:11:35 -0800 (Tue, 20 Nov 2012)
New Revision: 21058

Added:
   seismo/2D/SPECFEM2D/trunk/EXAMPLES/salt_dome/Stacey_normal/process.sh
Modified:
   seismo/2D/SPECFEM2D/trunk/EXAMPLES/salt_dome/Stacey_normal/Par_file
Log:
add the process file for this example


Modified: seismo/2D/SPECFEM2D/trunk/EXAMPLES/salt_dome/Stacey_normal/Par_file
===================================================================
--- seismo/2D/SPECFEM2D/trunk/EXAMPLES/salt_dome/Stacey_normal/Par_file	2012-11-20 11:50:33 UTC (rev 21057)
+++ seismo/2D/SPECFEM2D/trunk/EXAMPLES/salt_dome/Stacey_normal/Par_file	2012-11-20 15:11:35 UTC (rev 21058)
@@ -140,13 +140,13 @@
 
 # data concerning mesh, when generated using third-party app (more info in README)
 # (see also absorbing_conditions above)
-mesh_file                       = ./DATA/modelY1_mesh_file   # file containing the mesh
-nodes_coords_file               = ./DATA/modelY1_nodes_coords_file   # file containing the nodes coordinates
-materials_file                  = ./DATA/modelY1_materials_file   # file containing the material number for each element
-free_surface_file               = ./DATA/modelY1_free_surface_file   # file containing the free surface
-absorbing_surface_file          = ./DATA/modelY1_absorbing_surface_file   # file containing the absorbing surface
+mesh_file                       = modelY1_mesh_file   # file containing the mesh
+nodes_coords_file               = modelY1_nodes_coords_file   # file containing the nodes coordinates
+materials_file                  = modelY1_materials_file   # file containing the material number for each element
+free_surface_file               = modelY1_free_surface_file   # file containing the free surface
+absorbing_surface_file          = modelY1_absorbing_surface_file   # file containing the absorbing surface
 CPML_element_file               = Elements_CPML_list  # file containing the CPML element numbers
-tangential_detection_curve_file = ./DATA/courbe_eros_nodes # file containing the curve delimiting the velocity model
+tangential_detection_curve_file = courbe_eros_nodes # file containing the curve delimiting the velocity model
 
 #-----------------------------------------------------------------------------
 # PARAMETERS FOR INTERNAL MESHING

Added: seismo/2D/SPECFEM2D/trunk/EXAMPLES/salt_dome/Stacey_normal/process.sh
===================================================================
--- seismo/2D/SPECFEM2D/trunk/EXAMPLES/salt_dome/Stacey_normal/process.sh	                        (rev 0)
+++ seismo/2D/SPECFEM2D/trunk/EXAMPLES/salt_dome/Stacey_normal/process.sh	2012-11-20 15:11:35 UTC (rev 21058)
@@ -0,0 +1,65 @@
+#!/bin/bash
+#
+# script runs mesher and solver (in serial)
+# using this example setup
+#
+
+echo "running example: `date`"
+currentdir=`pwd`
+
+echo
+echo "(will take a few minutes)"
+echo
+
+# sets up directory structure in current example directoy
+echo
+echo "   setting up example..."
+echo
+
+mkdir -p OUTPUT_FILES
+mkdir -p DATA
+
+# sets up local DATA/ directory
+cd DATA/
+cp ../Par_file Par_file
+#cp ../interfaces_elastic_analytic.dat .
+cp ../SOURCE SOURCE
+cd ../
+
+# cleans output files
+rm -rf OUTPUT_FILES/*
+
+# compiles executables in root directory
+cd ../../../
+make > tmp.log
+cd $currentdir
+
+# links executables
+rm -f xmeshfem2D xspecfem2D
+ln -s ../../../bin/xmeshfem2D
+ln -s ../../../bin/xspecfem2D
+
+# stores setup
+cp DATA/Par_file OUTPUT_FILES/
+cp DATA/SOURCE OUTPUT_FILES/
+
+# runs database generation
+echo
+echo "  running mesher..."
+echo
+./xmeshfem2D > OUTPUT_FILES/output_mesher.txt
+
+# runs simulation
+echo
+echo "  running solver..."
+echo
+./xspecfem2D > OUTPUT_FILES/output_solver.txt
+
+# stores output
+cp DATA/*SOURCE* DATA/*STATIONS* OUTPUT_FILES
+
+echo
+echo "see results in directory: OUTPUT_FILES/"
+echo
+echo "done"
+echo `date`


Property changes on: seismo/2D/SPECFEM2D/trunk/EXAMPLES/salt_dome/Stacey_normal/process.sh
___________________________________________________________________
Name: svn:executable
   + *



More information about the CIG-COMMITS mailing list