1 subroutine da_calculate_grady_ssmt1(iv, re, jo_grad_y)
3 !-------------------------------------------------------------------------
4 ! Purpose: Applies obs inverse on re-vector
5 !-------------------------------------------------------------------------
9 type (iv_type), intent(in) :: iv ! Innovation vector.
10 type (y_type), intent(inout) :: re ! Residual vector.
11 type (y_type), intent(inout) :: jo_grad_y ! Grad_y(Jo)
15 if (trace_use_dull) call da_trace_entry("da_calculate_grady_ssmt1")
17 do n=1, iv%info(ssmt1)%nlocal
18 do k=1, iv%info(ssmt1)%levels(n)
19 if (iv%ssmt1(n)%t(k)%qc < obs_qc_pointer) re%ssmt1(n)%t(k) = 0.0
20 jo_grad_y%ssmt1(n)%t(k) = -re%ssmt1(n)%t(k) / &
21 (iv%ssmt1(n)%t(k)%error * iv%ssmt1(n)%t(k)%error)
25 if (trace_use_dull) call da_trace_exit("da_calculate_grady_ssmt1")
27 end subroutine da_calculate_grady_ssmt1