da_transform_xtoy_ssmt1.inc
References to this file elsewhere.
1 subroutine da_transform_xtoy_ssmt1 (grid, iv, y)
2
3 !-----------------------------------------------------------------------
4 ! Purpose: TBD
5 !-----------------------------------------------------------------------
6
7 implicit none
8
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)
12
13 integer :: n ! Loop counter.
14
15 real, allocatable :: t (:,:)
16
17 if (trace_use_dull) call da_trace_entry("da_transform_xtoy_ssmt1")
18
19 allocate (t(iv%info(ssmt1)%max_lev,iv%info(ssmt1)%n1:iv%info(ssmt1)%n2))
20
21 call da_interp_lin_3d (grid%xa % t, iv%info(ssmt1), t)
22
23 do n=iv%info(ssmt1)%n1,iv%info(ssmt1)%n2
24 y%ssmt1(n)%t(:) = t(1:iv%info(ssmt1)%levels(n),n)
25 end do
26
27 deallocate (t)
28
29 if (trace_use_dull) call da_trace_exit("da_transform_xtoy_ssmt1")
30
31 end subroutine da_transform_xtoy_ssmt1
32
33