-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #849 from danielpeter/devel
adds initial SEMUCB Berkeley model; fixes attenuation for 1d models with 1d storage arrays
- Loading branch information
Showing
35 changed files
with
275,303 additions
and
179 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
PDEW 2008 1 6 5 14 23.70 37.2200 22.6900 75.0 6.1 6.2 SOUTHERN GREECE | ||
event name: 200801060514A | ||
time shift: 0.000 | ||
half duration: 3.0000 | ||
latitude: 36.9800 | ||
longitude: 22.8700 | ||
depth: 92.3900 | ||
Mrr: 7.740000e+24 | ||
Mtt: -1.830000e+25 | ||
Mpp: 1.060000e+25 | ||
Mrt: 1.290000e+25 | ||
Mrp: -8.450000e+24 | ||
Mtp: -4.430000e+24 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
GRFO IU 49.6909 11.2203 384.0 116.0 | ||
BEKI YL 41.31500 34.26300 1415.0 0.0 | ||
BGIO SR 31.72200 35.08780 752.0 100.0 | ||
LIT HT 40.10080 22.49000 480.0 0.0 | ||
ZKR GE 35.11470 26.21700 270.0 0.0 | ||
S001 XS 37.28300 21.71800 156.0 0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
---------------------------------------------------------- | ||
README | ||
---------------------------------------------------------- | ||
|
||
This example creates a regional mesh using transversely isotropic PREM | ||
and runs a spectral-element simulation. | ||
|
||
The simulation is setup to use 4 CPUs only, thus can be run locally on a desktop machine | ||
(needs to have MPI installed). | ||
|
||
|
||
1. forward simulation: | ||
---------------------- | ||
|
||
type: | ||
./run_this_example.sh | ||
|
||
to setup this directory for the simulation and to run a corresponding | ||
script "run_mesher_solver.bash". | ||
|
||
The simulation is accurate down to a shortest period of ~ 15 s. | ||
(minimum period resolved ~ (256/NEX_XI) * (ANGULAR_WIDTH_XI_IN_DEGREES/90) * 17) | ||
|
||
Reference seismograms for comparisons are provided in the directory: REF_SEIS/ | ||
|
||
|
||
2. kernel simulation: | ||
--------------------- | ||
|
||
type: | ||
./run_this_example.kernel.sh | ||
|
||
to setup this directory for the simulation and to submit a corresponding | ||
script "run_mesher_solver.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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
#!/bin/bash | ||
|
||
# gets settings from Par_file | ||
|
||
BASEMPIDIR=`grep ^LOCAL_PATH DATA/Par_file | cut -d = -f 2 ` | ||
|
||
# script to run the mesher and the solver | ||
# read DATA/Par_file to get information about the run | ||
# compute total number of nodes needed | ||
NPROC_XI=`grep ^NPROC_XI DATA/Par_file | cut -d = -f 2 ` | ||
NPROC_ETA=`grep ^NPROC_ETA DATA/Par_file | cut -d = -f 2` | ||
NCHUNKS=`grep ^NCHUNKS DATA/Par_file | cut -d = -f 2 ` | ||
|
||
# total number of nodes is the product of the values read | ||
numnodes=$(( $NCHUNKS * $NPROC_XI * $NPROC_ETA )) | ||
|
||
mkdir -p OUTPUT_FILES | ||
|
||
# backup files used for this simulation | ||
cp DATA/Par_file OUTPUT_FILES/ | ||
cp DATA/STATIONS OUTPUT_FILES/ | ||
cp DATA/CMTSOLUTION OUTPUT_FILES/ | ||
|
||
|
||
## | ||
## mesh generation | ||
## | ||
sleep 2 | ||
|
||
echo | ||
echo `date` | ||
echo "starting MPI mesher on $numnodes processors" | ||
echo | ||
|
||
mpirun -np $numnodes $PWD/bin/xmeshfem3D | ||
|
||
# checks exit code | ||
if [[ $? -ne 0 ]]; then exit 1; fi | ||
|
||
echo " mesher done: `date`" | ||
echo | ||
|
||
# backup important files addressing.txt and list*.txt | ||
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 | ||
echo `date` | ||
echo starting run in current directory $PWD | ||
echo | ||
|
||
mpirun -np $numnodes $PWD/bin/xspecfem3D | ||
|
||
# checks exit code | ||
if [[ $? -ne 0 ]]; then exit 1; fi | ||
|
||
echo "finished successfully" | ||
echo `date` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
#!/bin/bash | ||
# | ||
# regional simulation example | ||
# | ||
# script runs mesher and solver using mpirun | ||
# on 4 CPUs | ||
# | ||
# synthetics have an approximate shortest period ~ 20 s | ||
# | ||
# modify accordingly for your own system specifics | ||
################################################## | ||
|
||
echo "running example: `date`" | ||
currentdir=`pwd` | ||
|
||
echo "directory: $currentdir" | ||
echo "(will take about 15 minutes)" | ||
echo | ||
|
||
# sets up directory structure in current example directoy | ||
echo | ||
echo " setting up example..." | ||
echo | ||
|
||
mkdir -p DATABASES_MPI | ||
mkdir -p OUTPUT_FILES | ||
|
||
rm -rf DATABASES_MPI/* | ||
rm -rf OUTPUT_FILES/* | ||
|
||
# checks if executables were compiled and available | ||
if [ ! -e ../../bin/xspecfem3D ]; then | ||
echo "Compiling first all binaries in the root directory..." | ||
echo | ||
|
||
# compiles executables in root directory | ||
# using default configuration | ||
cd ../../ | ||
|
||
# only in case static compilation would have been set to yes in Makefile: | ||
cp $currentdir/DATA/Par_file DATA/Par_file | ||
|
||
# compiles code | ||
make clean | ||
make -j4 all | ||
|
||
# checks exit code | ||
if [[ $? -ne 0 ]]; then exit 1; fi | ||
|
||
# backup of constants setup | ||
cp setup/* $currentdir/OUTPUT_FILES/ | ||
if [ -e OUTPUT_FILES/values_from_mesher ]; then | ||
cp OUTPUT_FILES/values_from_mesher.h $currentdir/OUTPUT_FILES/values_from_mesher.h.compilation | ||
fi | ||
cp DATA/Par_file $currentdir/OUTPUT_FILES/ | ||
|
||
cd $currentdir | ||
fi | ||
|
||
# copy executables | ||
mkdir -p bin | ||
rm -rf bin/* | ||
cp ../../bin/x* ./bin/ | ||
|
||
# links data directories needed to run example in this current directory with s362ani | ||
cd DATA/ | ||
ln -s ../../../DATA/SEMUCB_A3d | ||
ln -s ../../../DATA/topo_bathy | ||
cd ../ | ||
|
||
# run mesher & solver | ||
echo | ||
echo " running script..." | ||
echo | ||
./run_mesher_solver.bash | ||
|
||
# checks exit code | ||
if [[ $? -ne 0 ]]; then exit 1; fi | ||
|
||
echo `date` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.