Skip to content

Commit

Permalink
add sensitivity kernel for love wave
Browse files Browse the repository at this point in the history
  • Loading branch information
xumi1993 committed Nov 26, 2024
1 parent e412985 commit b8e9c34
Show file tree
Hide file tree
Showing 5 changed files with 967 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/model.f90
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ subroutine inv1d(this, vsinv, niter, misfits)
vsinv = vsinv * (1-update_total)
enddo
niter = iter

end subroutine inv1d

subroutine add_pert(this,nx,ny,nz,pert_vel,hmarg,anom_size)
Expand Down
2 changes: 1 addition & 1 deletion src/para.f90
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ subroutine read_par_file(this, fname)
! if (associated(io_err)) call exit_mpi(myrank, trim(io_err%message))
this%data%iwave = data_sec%get_integer('iwave', error=io_err)
if (associated(io_err)) call exit_mpi(myrank, trim(io_err%message))
if (this%data%iwave == 2) then
if (this%data%iwave == RAYLEIGH) then
this%data%wave_name = 'rayleigh'
else
this%data%wave_name = 'love'
Expand Down
2 changes: 2 additions & 0 deletions src/shared/shared_par.f90
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module constants

! if NUMBER_OF_SIMULTANEOUS_RUNS > 1
character(len=MAX_STRING_LEN) :: OUTPUT_FILES = 'OUTPUT_FILES'
integer, parameter :: GROUP_VEL = 1, PHASE_VEL = 0
integer, parameter :: RAYLEIGH = 2, LOVE = 1

! we put a default value here
real(kind=dp), parameter :: pi = 3.14159265359
Expand Down
Loading

0 comments on commit b8e9c34

Please sign in to comment.