1 subroutine da_residual_new(yy, qc, inv, rr)
3 !-----------------------------------------------------------------------
5 !-----------------------------------------------------------------------
9 integer, intent(in) :: qc(:,:)
10 real, intent(in) :: inv(:,:)
11 real, intent(in) :: yy(:,:)
12 real, intent(out) :: rr(:,:)
14 if (trace_use) call da_trace_entry("da_residual_new")
16 where (qc(:,:) >= obs_qc_pointer)
17 rr(:,:) = inv(:,:) - yy(:,:)
22 if (trace_use) call da_trace_exit("da_residual_new")
24 end subroutine da_residual_new