Skip to content

Commit

Permalink
updates kernel reference solution in example regional_Greece_small_LD…
Browse files Browse the repository at this point in the history
…DRK/; update test scripts
  • Loading branch information
danielpeter committed Nov 19, 2024
1 parent 54a6643 commit b343572
Show file tree
Hide file tree
Showing 17 changed files with 5,541 additions and 224 deletions.
14 changes: 14 additions & 0 deletions .github/scripts/run_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,20 @@ if [ "${ADIOS2}" == "true" ]; then
echo; echo "done ADIOS2"; echo
fi

## EMC model
if [ "${EMC_MODEL}" == "true" ]; then
echo
echo "EMC model installation:"
echo
echo "current dir: `pwd`"
cd DATA/IRIS_EMC/
wget --tries=3 https://ds.iris.edu/files/products/emc/emc-files/Alaska.JointInversion-RF+Vph+HV-1.Berg.2020-nc4.nc
# checks exit code
if [[ $? -ne 0 ]]; then exit 1; fi
ln -s Alaska.JointInversion-RF+Vph+HV-1.Berg.2020-nc4.nc model.nc
cd ../../
fi

# MPI
# github actions uses for Linux virtual machines a 2-core CPU environment
# see: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,7 @@ jobs:

- name: Install packages
env:
EMC_MODEL: true
NETCDF: true
run: ./.github/scripts/run_install.sh
shell: bash
Expand All @@ -612,6 +613,7 @@ jobs:

- name: Install packages
env:
EMC_MODEL: true
NETCDF: true
run: ./.github/scripts/run_install.sh
shell: bash
Expand Down Expand Up @@ -639,6 +641,7 @@ jobs:

- name: Install packages
env:
EMC_MODEL: true
NETCDF: true
HIP: true
run: ./.github/scripts/run_install.sh
Expand Down
9 changes: 6 additions & 3 deletions EXAMPLES/regional_EMC_model/run_this_example_kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ mkdir -p OUTPUT_FILES
rm -rf DATABASES_MPI/*
rm -rf OUTPUT_FILES/*

if [ ! -f ./change_simulation_type.pl ]; then
ln -s ../../utils/change_simulation_type.pl
fi

./change_simulation_type.pl -F

# DATABASES directory
Expand Down Expand Up @@ -68,13 +71,13 @@ cp ../../bin/xmeshfem3D ./bin/
cp ../../bin/xspecfem3D ./bin/
cp ../../bin/xcombine_vol_data ./bin/
cp ../../bin/xcombine_vol_data_vtk ./bin/
cp ../../bin/xcombine_vol_data_vtu ./bin/

# links data directories needed to run example in this current directory with s362ani
cd DATA/
ln -s ../../../DATA/s40rts
ln -s ../../../DATA/s20rts
ln -s ../../../DATA/crust2.0
ln -s ../../../DATA/IRIS_EMC
ln -s ../../../DATA/topo_bathy
ln -s ../../../DATA/crust1.0
cd ../


Expand Down
Loading

0 comments on commit b343572

Please sign in to comment.