mirror of
https://github.com/HongjianFang/DSurfTomo.git
synced 2025-05-08 00:01:14 +08:00
fix bug
bug caused by severly varied layer depth, 'minthk' = layerthick / sublayernum, can be 1, 2 ,3
This commit is contained in:
parent
fb7b81711f
commit
b25529e2b2
@ -2263,7 +2263,7 @@ ENDDO
|
|||||||
END SUBROUTINE bilinear
|
END SUBROUTINE bilinear
|
||||||
|
|
||||||
|
|
||||||
subroutine refineGrid2LayerMdl(minthk,mmax,dep,vp,vs,rho,&
|
subroutine refineGrid2LayerMdl(minthk0,mmax,dep,vp,vs,rho,&
|
||||||
rmax,rdep,rvp,rvs,rrho,rthk)
|
rmax,rdep,rvp,rvs,rrho,rthk)
|
||||||
!!--------------------------------------------------------------------c
|
!!--------------------------------------------------------------------c
|
||||||
!!refine grid based model to layerd based model
|
!!refine grid based model to layerd based model
|
||||||
@ -2277,6 +2277,7 @@ END SUBROUTINE bilinear
|
|||||||
integer NL
|
integer NL
|
||||||
parameter (NL=200)
|
parameter (NL=200)
|
||||||
integer mmax,rmax
|
integer mmax,rmax
|
||||||
|
real minthk0
|
||||||
real minthk
|
real minthk
|
||||||
real dep(*),vp(*),vs(*),rho(*)
|
real dep(*),vp(*),vs(*),rho(*)
|
||||||
real rdep(NL),rvp(NL),rvs(NL),rrho(NL),rthk(NL)
|
real rdep(NL),rvp(NL),rvs(NL),rrho(NL),rthk(NL)
|
||||||
@ -2288,6 +2289,7 @@ END SUBROUTINE bilinear
|
|||||||
initdep = 0.0
|
initdep = 0.0
|
||||||
do i = 1, mmax-1
|
do i = 1, mmax-1
|
||||||
thk = dep(i+1)-dep(i)
|
thk = dep(i+1)-dep(i)
|
||||||
|
minthk = thk/minthk0
|
||||||
nsublay(i) = int((thk+1.0e-4)/minthk) + 1
|
nsublay(i) = int((thk+1.0e-4)/minthk) + 1
|
||||||
ngrid = nsublay(i)+1
|
ngrid = nsublay(i)+1
|
||||||
newthk = thk/nsublay(i)
|
newthk = thk/nsublay(i)
|
||||||
|
@ -2266,7 +2266,7 @@ ENDDO
|
|||||||
END SUBROUTINE bilinear
|
END SUBROUTINE bilinear
|
||||||
|
|
||||||
|
|
||||||
subroutine refineGrid2LayerMdl(minthk,mmax,dep,vp,vs,rho,&
|
subroutine refineGrid2LayerMdl(minthk0,mmax,dep,vp,vs,rho,&
|
||||||
rmax,rdep,rvp,rvs,rrho,rthk)
|
rmax,rdep,rvp,rvs,rrho,rthk)
|
||||||
!!--------------------------------------------------------------------c
|
!!--------------------------------------------------------------------c
|
||||||
!!refine grid based model to layerd based model
|
!!refine grid based model to layerd based model
|
||||||
@ -2281,6 +2281,7 @@ END SUBROUTINE bilinear
|
|||||||
parameter (NL=200)
|
parameter (NL=200)
|
||||||
integer mmax,rmax
|
integer mmax,rmax
|
||||||
real minthk
|
real minthk
|
||||||
|
real minthk0
|
||||||
real dep(*),vp(*),vs(*),rho(*)
|
real dep(*),vp(*),vs(*),rho(*)
|
||||||
real rdep(NL),rvp(NL),rvs(NL),rrho(NL),rthk(NL)
|
real rdep(NL),rvp(NL),rvs(NL),rrho(NL),rthk(NL)
|
||||||
integer nsublay(NL)
|
integer nsublay(NL)
|
||||||
@ -2291,6 +2292,7 @@ END SUBROUTINE bilinear
|
|||||||
initdep = 0.0
|
initdep = 0.0
|
||||||
do i = 1, mmax-1
|
do i = 1, mmax-1
|
||||||
thk = dep(i+1)-dep(i)
|
thk = dep(i+1)-dep(i)
|
||||||
|
minthk = thk/minthk0
|
||||||
nsublay(i) = int((thk+1.0e-4)/minthk) + 1
|
nsublay(i) = int((thk+1.0e-4)/minthk) + 1
|
||||||
ngrid = nsublay(i)+1
|
ngrid = nsublay(i)+1
|
||||||
newthk = thk/nsublay(i)
|
newthk = thk/nsublay(i)
|
||||||
|
Loading…
Reference in New Issue
Block a user