da_transform_xtoy_polaramv_adj.inc
References to this file elsewhere.
1 subroutine da_transform_xtoy_polaramv_adj (iv, xp, jo_grad_y, jo_grad_x)
2
3 !-------------------------------------------------------------------------
4 ! Purpose: X to Y Transpose operator for Polar AMVs
5 !-------------------------------------------------------------------------
6
7 implicit none
8
9 type (ob_type), intent(in) :: iv ! obs. inc vector (o-b).
10 type (xpose_type), intent(in) :: xp ! Domain decomposition vars.
11 type (y_type) , intent(in) :: jo_grad_y ! grad_y(jo)
12 type (x_type) , intent(inout) :: jo_grad_x ! grad_x(jo)
13
14 integer :: n, k ! Loop counter.
15 integer :: i, j ! Index dimension.
16 real :: dx, dxm !
17 real :: dy, dym !
18
19 if (iv%num_polaramv > 0) then
20 ! xyh
21 ! do n=1, iv % num_polaramv
22 do n=iv%ob_numb(iv%current_ob_time-1)%polaramv + 1, &
23 iv%ob_numb(iv%current_ob_time)%polaramv
24
25 k = iv % polaramv(n) % info % levels
26
27 if (k < 1) cycle
28
29 i = iv%polaramv(n)%loc%i
30 dy = iv%polaramv(n)%loc%dy
31 dym = iv%polaramv(n)%loc%dym
32 j = iv%polaramv(n)%loc%j
33 dx = iv%polaramv(n)%loc%dx
34 dxm = iv%polaramv(n)%loc%dxm
35
36 call da_interp_lin_3d_adj(jo_grad_x % u, xp, i, j, dx, dy, dxm, dym, &
37 jo_grad_y%polaramv(n)%u, k, iv%polaramv(n)%zk, k)
38 call da_interp_lin_3d_adj(jo_grad_x % v, xp, i, j, dx, dy, dxm, dym, &
39 jo_grad_y%polaramv(n)%v, k, iv%polaramv(n)%zk, k)
40 end do
41 end if
42
43 end subroutine da_transform_xtoy_polaramv_adj
44
45