Go to the source code of this file.
◆ ghostuv2()
subroutine ghostuv2 |
( |
integer, intent(in) |
I, |
|
|
integer, intent(in) |
JJ, |
|
|
real(sp), intent(out) |
UAKK, |
|
|
real(sp), intent(out) |
VAKK |
|
) |
| |
Definition at line 44 of file ghostuv.f90.
49 INTEGER,
INTENT(IN) :: I,JJ
51 REAL(SP) :: DELTX,DELTY,ALPHA1
53 REAL(SP),
INTENT(OUT):: UAKK,VAKK
55 uakk = 0.0_sp; vakk = 0.0_sp
58 j1 = jj+1-int((jj+1)/4)*3
59 j2 = jj+2-int((jj+2)/4)*3
63 alpha1 = atan2(delty,deltx)
65 utmp =
ua(i)*cos(alpha1)+
va(i)*sin(alpha1)
66 vtmp = -
ua(i)*sin(alpha1)+
va(i)*cos(alpha1)
71 uakk = utmp*cos(alpha1)-vtmp*sin(alpha1)
72 vakk = utmp*sin(alpha1)+vtmp*cos(alpha1)
73 ELSE IF(
isbce(i) == 2)
THEN real(sp), dimension(:), allocatable, target va
real(sp), dimension(:), allocatable, target vx
real(sp), dimension(:), allocatable, target vy
integer, dimension(:,:), allocatable, target nv
real(sp), dimension(:), allocatable, target ua
integer, dimension(:), allocatable, target isbce
◆ ghostuv3()
subroutine ghostuv3 |
( |
integer, intent(in) |
I, |
|
|
integer, intent(in) |
JJ, |
|
|
real(sp), dimension(kb), intent(out) |
UAKK, |
|
|
real(sp), dimension(kb), intent(out) |
VAKK |
|
) |
| |
Definition at line 86 of file ghostuv.f90.
91 INTEGER,
INTENT(IN) :: I,JJ
93 REAL(SP) :: DELTX,DELTY,ALPHA1
95 REAL(SP),
INTENT(OUT):: UAKK(KB),VAKK(KB)
97 uakk = 0.0_sp; vakk = 0.0_sp
100 j1 = jj+1-int((jj+1)/4)*3
101 j2 = jj+2-int((jj+2)/4)*3
105 alpha1 = atan2(delty,deltx)
108 utmp =
u(i,k)*cos(alpha1)+
v(i,k)*sin(alpha1)
109 vtmp = -
u(i,k)*sin(alpha1)+
v(i,k)*cos(alpha1)
114 uakk(k) = utmp*cos(alpha1)-vtmp*sin(alpha1)
115 vakk(k) = utmp*sin(alpha1)+vtmp*cos(alpha1)
118 ELSE IF(
isbce(i) == 2)
THEN real(sp), dimension(:,:), allocatable, target v
real(sp), dimension(:,:), allocatable, target u
real(sp), dimension(:), allocatable, target vx
real(sp), dimension(:), allocatable, target vy
integer, dimension(:,:), allocatable, target nv
integer, dimension(:), allocatable, target isbce