51 REAL(SP) :: PHPX,PHPY,F1
58 phpx = 0.0_sp ; phpy = 0.0_sp
62 f1 = 0.50_sp*(
h(i1)+
h(i2))
63 phpx = phpx + f1*(
vy(i1)-
vy(i2))
64 phpy = phpy + f1*(
vx(i2)-
vx(i1))
69 IF(phpx==0.0_sp .AND. phpy ==0.0_sp)
THEN 73 phpn(i) = sqrt(phpy*phpy+phpx*phpx)
integer, dimension(:), allocatable, target ntsn
real(sp), dimension(:), allocatable, target h
real(sp), dimension(:), allocatable, target art2
real(sp), dimension(:), allocatable, target vx
real(sp), dimension(:), allocatable, target phpn
real(sp), dimension(:), allocatable, target vy
real(sp), dimension(:), allocatable, target sita_gd
integer, dimension(:,:), allocatable, target nbsn
subroutine depth_gradient