1 subroutine da_check_xtoy_adjoint_rain(iv, y, adjtest_lhs, pertile_lhs)
3 !-----------------------------------------------------------------------
5 !-----------------------------------------------------------------------
9 type (iv_type), intent(in) :: iv ! obs. inc. vector (o-b).
10 type (y_type) , intent(inout) :: y ! y = h (xa)
11 real , intent(inout) :: adjtest_lhs, pertile_lhs
13 integer :: n ! loop counter.
16 if (trace_use) call da_trace_entry("da_check_xtoy_adjoint_rain")
18 if (iv%info(rain)%nlocal > 0) then
19 do n=iv%info(rain)%n1, iv%info(rain)%n2
20 y%rain(n)%rain = y%rain(n)%rain/typical_rain_rms
22 var = (y%rain(n)%rain) ** 2
24 pertile_lhs = pertile_lhs + var
26 if (iv%info(rain)%proc_domain(1,n)) then
27 adjtest_lhs = adjtest_lhs + var
30 y%rain(n)%rain = y%rain(n)%rain/typical_rain_rms
34 if (trace_use) call da_trace_exit("da_check_xtoy_adjoint_rain")
36 end subroutine da_check_xtoy_adjoint_rain