<HTML> <BODY BGCOLOR=#ccccdd LINK=#0000aa VLINK=#0000ff ALINK=#ff0000 ><BASE TARGET="bottom_target"><PRE>
<A NAME='DA_JO_AIRSR_TQ'><A href='../../html_code/airsr/da_jo_airsr_tq.inc.html#DA_JO_AIRSR_TQ' TARGET='top_target'><IMG SRC="../../gif/bar_red.gif" border=0></A>
subroutine da_jo_airsr_tq(iv, re, jo_grad_y, jo),2
!-----------------------------------------------------------------------
! Purpose: TBD
!-----------------------------------------------------------------------
implicit none
type (iv_type), intent(in) :: iv ! Innovation vector.
type (y_type), intent(in) :: re ! Residual vector.
type (y_type), intent(inout) :: jo_grad_y ! Grad_y(Jo)
type (jo_type), intent(inout) :: jo ! Obs cost function.
integer :: n, k
if (trace_use_dull) call da_trace_entry
("da_jo_airsr_tq")
do n=1, iv%info(airsr)%nlocal
if (iv%info(airsr)%proc_domain(1,n)) then
do k=1, iv%info(airsr)%levels(n)
jo % airsr_t = jo % airsr_t - re%airsr(n)%t(k) * jo_grad_y%airsr(n)%t(k)
jo % airsr_q = jo % airsr_q - re%airsr(n)%q(k) * jo_grad_y%airsr(n)%q(k)
end do
end if
end do
if (trace_use_dull) call da_trace_exit
("da_jo_airsr_tq")
end subroutine da_jo_airsr_tq