da_transform_xtoy_geoamv_adj.inc
References to this file elsewhere.
1 subroutine da_transform_xtoy_geoamv_adj (iv, jo_grad_y, jo_grad_x)
2
3 !-------------------------------------------------------------------------
4 ! Purpose: X to Y Transpose operator for Geo. AMVs
5 !-------------------------------------------------------------------------
6
7 implicit none
8
9 type (iv_type), intent(in) :: iv ! obs. inc vector (o-b).
10 type (y_type) , intent(in) :: jo_grad_y ! grad_y(jo)
11 type (x_type) , intent(inout) :: jo_grad_x ! grad_x(jo)
12
13 integer :: n ! Loop counter.
14 real, allocatable :: u(:,:)
15 real, allocatable :: v(:,:)
16
17 if (trace_use_dull) call da_trace_entry("da_transform_xtoy_geoamv_adj")
18
19 allocate (u(iv%info(geoamv)%max_lev,iv%info(geoamv)%n1:iv%info(geoamv)%n2))
20 allocate (v(iv%info(geoamv)%max_lev,iv%info(geoamv)%n1:iv%info(geoamv)%n2))
21
22 do n=iv%info(geoamv)%n1,iv%info(geoamv)%n2
23 u(1:size(jo_grad_y%geoamv(n)%u),n) = jo_grad_y%geoamv(n)%u(:)
24 v(1:size(jo_grad_y%geoamv(n)%v),n) = jo_grad_y%geoamv(n)%v(:)
25 end do
26
27 call da_interp_lin_3d_adj (jo_grad_x%u, iv%info(geoamv), u)
28 call da_interp_lin_3d_adj (jo_grad_x%v, iv%info(geoamv), v)
29
30 deallocate (u)
31 deallocate (v)
32
33 if (trace_use_dull) call da_trace_exit("da_transform_xtoy_geoamv_adj")
34
35 end subroutine da_transform_xtoy_geoamv_adj
36
37