da_transform_xtoy_pilot_adj.inc
References to this file elsewhere.
1 subroutine da_transform_xtoy_pilot_adj(iv, xp, jo_grad_y, jo_grad_x)
2
3 !-----------------------------------------------------------------------
4 ! Purpose: TBD
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 ! Loop counter.
15 integer :: i, j, k ! Index dimension.
16 real :: dx, dxm !
17 real :: dy, dym !
18
19 if (iv%num_pilot > 0) then
20 do n=iv%ob_numb(iv%current_ob_time-1)%pilot + 1, iv%ob_numb(iv%current_ob_time)%pilot
21 k = iv % pilot(n) % info % levels
22
23 if (k < 1) cycle
24
25 ! [1.3] Get horizontal interpolation weights:
26
27 i = iv%pilot(n)%loc%i
28 dy = iv%pilot(n)%loc%dy
29 dym = iv%pilot(n)%loc%dym
30 j = iv%pilot(n)%loc%j
31 dx = iv%pilot(n)%loc%dx
32 dxm = iv%pilot(n)%loc%dxm
33
34 call da_interp_lin_3d_adj(jo_grad_x % u, xp, i, j, dx, dy, dxm, dym, &
35 jo_grad_y%pilot(n)%u, k, iv%pilot(n)%zk, k)
36 call da_interp_lin_3d_adj(jo_grad_x % v, xp, i, j, dx, dy, dxm, dym, &
37 jo_grad_y%pilot(n)%v, k, iv%pilot(n)%zk, k)
38 end do
39 end if
40
41 end subroutine da_transform_xtoy_pilot_adj
42
43