1 subroutine da_transform_xtoy_ssmt2 (grid, iv, y)
3 !-----------------------------------------------------------------------
5 !-----------------------------------------------------------------------
9 type (domain), intent(in) :: grid
10 type (iv_type), intent(in) :: iv ! Innovation vector (O-B).
11 type (y_type), intent(inout) :: y ! y = h (grid%xa) (linear)
13 integer :: n ! Loop counter.
15 real, allocatable :: rh(:,:)
17 if (trace_use_dull) call da_trace_entry("da_transform_xtoy_ssmt2")
19 allocate (rh(1:iv%info(ssmt2)%max_lev,iv%info(ssmt2)%n1:iv%info(ssmt2)%n2))
21 call da_interp_lin_3d (grid%xa%rh, iv%info(ssmt2), rh)
23 do n=iv%info(ssmt2)%n1,iv%info(ssmt2)%n2
24 y%ssmt2(n)%rh(:) = rh(1:iv%info(ssmt2)%levels(n),n)
29 if (trace_use_dull) call da_trace_exit("da_transform_xtoy_ssmt2")
31 end subroutine da_transform_xtoy_ssmt2