1 subroutine da_calculate_grady_rain(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) call da_trace_entry("da_calculate_grady_rain")
17 do n=1, iv%info(rain)%nlocal
18 if (iv%rain(n)%rain%qc < obs_qc_pointer) re%rain(n)%rain = 0.0
19 jo_grad_y%rain(n)%rain = -re%rain(n)%rain / (iv%rain(n)%rain%error * iv%rain(n)%rain%error)
22 if (trace_use) call da_trace_exit("da_calculate_grady_rain")
24 end subroutine da_calculate_grady_rain