1 subroutine da_jo_airsr_tq(iv, re, jo_grad_y, jo)
3 !-----------------------------------------------------------------------
5 !-----------------------------------------------------------------------
9 type (iv_type), intent(in) :: iv ! Innovation vector.
10 type (y_type), intent(in) :: re ! Residual vector.
11 type (y_type), intent(inout) :: jo_grad_y ! Grad_y(Jo)
12 type (jo_type), intent(inout) :: jo ! Obs cost function.
16 if (trace_use_dull) call da_trace_entry("da_jo_airsr_tq")
18 do n=1, iv%info(airsr)%nlocal
19 if (iv%info(airsr)%proc_domain(1,n)) then
20 do k=1, iv%info(airsr)%levels(n)
21 jo % airsr_t = jo % airsr_t - re%airsr(n)%t(k) * jo_grad_y%airsr(n)%t(k)
22 jo % airsr_q = jo % airsr_q - re%airsr(n)%q(k) * jo_grad_y%airsr(n)%q(k)
27 if (trace_use_dull) call da_trace_exit("da_jo_airsr_tq")
29 end subroutine da_jo_airsr_tq