Skip to content

Commit b343572

Browse files
committed
updates kernel reference solution in example regional_Greece_small_LDDRK/; update test scripts
1 parent 54a6643 commit b343572

17 files changed

+5541
-224
lines changed

.github/scripts/run_install.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,20 @@ if [ "${ADIOS2}" == "true" ]; then
152152
echo; echo "done ADIOS2"; echo
153153
fi
154154

155+
## EMC model
156+
if [ "${EMC_MODEL}" == "true" ]; then
157+
echo
158+
echo "EMC model installation:"
159+
echo
160+
echo "current dir: `pwd`"
161+
cd DATA/IRIS_EMC/
162+
wget --tries=3 https://ds.iris.edu/files/products/emc/emc-files/Alaska.JointInversion-RF+Vph+HV-1.Berg.2020-nc4.nc
163+
# checks exit code
164+
if [[ $? -ne 0 ]]; then exit 1; fi
165+
ln -s Alaska.JointInversion-RF+Vph+HV-1.Berg.2020-nc4.nc model.nc
166+
cd ../../
167+
fi
168+
155169
# MPI
156170
# github actions uses for Linux virtual machines a 2-core CPU environment
157171
# see: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources

.github/workflows/CI.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,7 @@ jobs:
586586

587587
- name: Install packages
588588
env:
589+
EMC_MODEL: true
589590
NETCDF: true
590591
run: ./.github/scripts/run_install.sh
591592
shell: bash
@@ -612,6 +613,7 @@ jobs:
612613

613614
- name: Install packages
614615
env:
616+
EMC_MODEL: true
615617
NETCDF: true
616618
run: ./.github/scripts/run_install.sh
617619
shell: bash
@@ -639,6 +641,7 @@ jobs:
639641

640642
- name: Install packages
641643
env:
644+
EMC_MODEL: true
642645
NETCDF: true
643646
HIP: true
644647
run: ./.github/scripts/run_install.sh

EXAMPLES/regional_EMC_model/run_this_example_kernel.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ mkdir -p OUTPUT_FILES
2525
rm -rf DATABASES_MPI/*
2626
rm -rf OUTPUT_FILES/*
2727

28+
if [ ! -f ./change_simulation_type.pl ]; then
2829
ln -s ../../utils/change_simulation_type.pl
30+
fi
31+
2932
./change_simulation_type.pl -F
3033

3134
# DATABASES directory
@@ -68,13 +71,13 @@ cp ../../bin/xmeshfem3D ./bin/
6871
cp ../../bin/xspecfem3D ./bin/
6972
cp ../../bin/xcombine_vol_data ./bin/
7073
cp ../../bin/xcombine_vol_data_vtk ./bin/
74+
cp ../../bin/xcombine_vol_data_vtu ./bin/
7175

7276
# links data directories needed to run example in this current directory with s362ani
7377
cd DATA/
74-
ln -s ../../../DATA/s40rts
75-
ln -s ../../../DATA/s20rts
76-
ln -s ../../../DATA/crust2.0
78+
ln -s ../../../DATA/IRIS_EMC
7779
ln -s ../../../DATA/topo_bathy
80+
ln -s ../../../DATA/crust1.0
7881
cd ../
7982

8083

0 commit comments

Comments
 (0)