From ad7ac2f74853f42a556003c3a6b1afd9800f7dd1 Mon Sep 17 00:00:00 2001 From: Mijian Xu Date: Thu, 16 May 2024 17:09:46 +0800 Subject: [PATCH 01/11] Update build.yml --- .github/workflows/build.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index da1d5cc..718f829 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,10 +7,8 @@ on: branches: [ "main" ] jobs: - build: - + LinuxBuild: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v4 - name: Install dependencies @@ -20,3 +18,15 @@ jobs: run: | mkdir build && cd build cmake .. && make -j 4 + + MacosBuild: + runs-on: macos-latest + step: + - uses: actions/checkout@v4 + - name: Install dependencies + run: | + brew install gcc cmake open-mpi hdf5 + - name: make + run: | + mkdir build && cd build + cmake .. && make -j 4 From 178c82c6c6903fb9330c515955d0038cec387cf2 Mon Sep 17 00:00:00 2001 From: Mijian Xu Date: Thu, 16 May 2024 17:10:07 +0800 Subject: [PATCH 02/11] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 718f829..d20a2dc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,7 @@ jobs: MacosBuild: runs-on: macos-latest - step: + steps: - uses: actions/checkout@v4 - name: Install dependencies run: | From b3ba9165923117122a553aa74cdf2c160c665f72 Mon Sep 17 00:00:00 2001 From: Mijian Xu Date: Thu, 16 May 2024 17:14:02 +0800 Subject: [PATCH 03/11] Update build.yml --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d20a2dc..389c844 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,8 +25,8 @@ jobs: - uses: actions/checkout@v4 - name: Install dependencies run: | - brew install gcc cmake open-mpi hdf5 + brew install gcc@13 cmake open-mpi hdf5 - name: make run: | mkdir build && cd build - cmake .. && make -j 4 + CXX=gcc-13 FC=gfortran-13 cmake .. && make -j 4 From ef811fb91d5ff7be3b63ae8f4e8ec6b5ba2e4467 Mon Sep 17 00:00:00 2001 From: Mijian Xu Date: Thu, 16 May 2024 17:30:32 +0800 Subject: [PATCH 04/11] Update build.yml --- .github/workflows/build.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 389c844..7f5ab68 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,7 @@ on: branches: [ "main" ] jobs: - LinuxBuild: + LinuxTest: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -19,14 +19,9 @@ jobs: mkdir build && cd build cmake .. && make -j 4 - MacosBuild: - runs-on: macos-latest - steps: - - uses: actions/checkout@v4 - - name: Install dependencies + - name: test run: | - brew install gcc@13 cmake open-mpi hdf5 - - name: make - run: | - mkdir build && cd build - CXX=gcc-13 FC=gfortran-13 cmake .. && make -j 4 + cd $GITHUB_WORKSPACE/examples/00_checkerboard_iso + sed -i "/NPROC=/c\NPROC=4" run_this_example.sh + sh run_this_example.sh + From 5513d8513fe60d9521d988a30de1bfb64e5b192f Mon Sep 17 00:00:00 2001 From: Mijian Xu Date: Thu, 16 May 2024 17:33:51 +0800 Subject: [PATCH 05/11] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7f5ab68..bf4054d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,6 +22,6 @@ jobs: - name: test run: | cd $GITHUB_WORKSPACE/examples/00_checkerboard_iso - sed -i "/NPROC=/c\NPROC=4" run_this_example.sh + sed -i "/NPROC=/c\NPROC=1" run_this_example.sh sh run_this_example.sh From a018106ca7c79dc92e4ead2872bc0784b59ec2d3 Mon Sep 17 00:00:00 2001 From: Mijian Xu Date: Thu, 16 May 2024 17:41:15 +0800 Subject: [PATCH 06/11] Update build.yml --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bf4054d..4934334 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,5 +23,6 @@ jobs: 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 From e98758b26328bd4e059e82b1730bb671e0eb5529 Mon Sep 17 00:00:00 2001 From: Mijian Xu Date: Sat, 18 May 2024 15:07:16 +0800 Subject: [PATCH 07/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 84270e2..a90a738 100644 --- a/README.md +++ b/README.md @@ -21,4 +21,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. \ No newline at end of file +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. From 7990815cdb91bba22b83b752248b00a2425d7ff8 Mon Sep 17 00:00:00 2001 From: Mijian Xu Date: Sat, 18 May 2024 15:14:40 +0800 Subject: [PATCH 08/11] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a90a738..73ed31b 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ This is an innovative package for **Surf**ace wave **A**djoint **T**ravel-time * - Computation of sensitivity kernels through **adjoint method** ([Tong, 2021b](https://doi.org/10.1029/2021JB022365)) - **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)) +![Fig2](https://github.com/xumi1993/SurfATT-iso/assets/7437523/f9a0155b-7b83-4970-914d-f13dc42b11e5) ## Installation From 47c456b9e4312b6fb0e2fcd1d432b56eb9df8e43 Mon Sep 17 00:00:00 2001 From: Mijian Xu Date: Sat, 18 May 2024 15:24:42 +0800 Subject: [PATCH 09/11] Update README.md --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 73ed31b..733ce68 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,19 @@ [![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)]() - This is an innovative package for **Surf**ace wave **A**djoint **T**ravel-time **T**omography driven by modern fortran with highlights: - Calculation of surface wave travel time based on **Eikonal equation** with fast sweeping method ([Tong, 2021a](https://doi.org/10.1029/2021JB021818)) - Computation of sensitivity kernels through **adjoint method** ([Tong, 2021b](https://doi.org/10.1029/2021JB022365)) - **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 +![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 From a2dffe0d6a143f4c1b45a14607c0a767360b4ea5 Mon Sep 17 00:00:00 2001 From: Mijian Xu Date: Sat, 18 May 2024 15:26:19 +0800 Subject: [PATCH 10/11] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 733ce68..1901072 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,8 @@ This is an innovative package for **Surf**ace wave **A**djoint **T**ravel-time * - Consideration of **surface topography** ([Hao et al., 2024a](https://doi.org/10.1029/2023JB027454)) ## Gallery -### Travel time field and sensitivity kernel on curved surface + +### 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) ------- From ee5159a9b318874a73713415d0e2b1a1dd300a73 Mon Sep 17 00:00:00 2001 From: Mijian Xu Date: Sat, 18 May 2024 15:28:50 +0800 Subject: [PATCH 11/11] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 1901072..28c7f00 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ [![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: - Calculation of surface wave travel time based on **Eikonal equation** with fast sweeping method ([Tong, 2021a](https://doi.org/10.1029/2021JB021818))