Skip to content

Commit

Permalink
Merge branch 'devel' of github.com:xumi1993/SurfATT-iso into devel
Browse files Browse the repository at this point in the history
  • Loading branch information
xumi1993 committed Jul 14, 2024
2 parents 19ec416 + af2aabe commit 14a57a4
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build SurfATT

on:
push:
branches: [ "devel" ]
pull_request:
branches: [ "main" ]

jobs:
LinuxTest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt install build-essential gfortran cmake libopenmpi-dev openmpi-bin libhdf5-dev
- name: make
run: |
mkdir build && cd build
cmake .. && make -j 4
- name: test
run: |
cd $GITHUB_WORKSPACE/examples/00_checkerboard_iso
sed -i "/NPROC=/c\NPROC=1" run_this_example.sh
sed -i "/niter: /c\ niter: 2" input_params.yml
sh run_this_example.sh
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Language](https://img.shields.io/badge/-Fortran-734f96?logo=fortran&logoColor=white)](https://github.com/topics/fortran)
[![License](https://img.shields.io/github/license/xumi1993/seispy)]()
[![Build SurfATT](https://github.com/xumi1993/SurfATT-iso/actions/workflows/build.yml/badge.svg)](https://github.com/xumi1993/SurfATT-iso/actions/workflows/build.yml)

This is an innovative package for **Surf**ace wave **A**djoint **T**ravel-time **T**omography driven by modern fortran with highlights:

Expand All @@ -10,6 +11,15 @@ This is an innovative package for **Surf**ace wave **A**djoint **T**ravel-time *
- **Multi-grid model parametrization** utilization in optimization ([Tong et al., 2019](https://doi.org/10.1093/gji/ggz151))
- Consideration of **surface topography** ([Hao et al., 2024a](https://doi.org/10.1029/2023JB027454))

## Gallery

### Travel time field and sensitivity kernel on curved surface ([Hao et al., 2024a](https://doi.org/10.1029/2023JB027454))
![jgrb56585-fig-0001-m](https://github.com/xumi1993/SurfATT-iso/assets/7437523/49e205a3-7529-4079-a8c2-471c6e7075fc)
-------

### Tomographic results of S-wave velocity beneath Hawaii Island
![Fig2](https://github.com/xumi1993/SurfATT-iso/assets/7437523/f9a0155b-7b83-4970-914d-f13dc42b11e5)

## Installation

Please refer to the [installation guide](https://surfatt.xumijian.me/installation/dependence.html) for detailed instructions.
Expand All @@ -21,4 +31,4 @@ mpirun -np 4 bin/surfatt_tomo -i input_params.yml
```

### A quick example
A case named `test/00_checkerboard_iso` presents an example of inversion for 2x3x2 checkers using ambient noise surface wave data from 25 stations. execute run_this_example.sh to run this example under 5 processors.
A case named `test/00_checkerboard_iso` presents an example of inversion for 2x3x2 checkers using ambient noise surface wave data from 25 stations. execute `run_this_example.sh` to run this example under 8 processors.
1 change: 1 addition & 0 deletions examples/03_checkerboard_2d/input_params.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ data:

output:
output_path: OUTPUT_FILES/ # path to save output files
verbose_level: 1
log_level: 1 # 0 debug mode, 1 verbose mode

domain:
Expand Down

0 comments on commit 14a57a4

Please # to comment.