updated top-level README and version_decl for V4.5 (#1847)
[WRF.git] / var / da / da_tools / da_residual_new.inc
blob9921bdf29647aabc34d7656a58ea5d71c12c980c
1 subroutine da_residual_new(yy, qc, inv, rr)
3    !-----------------------------------------------------------------------
4    ! Purpose: TBD
5    !-----------------------------------------------------------------------
7    implicit none
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")
15   
16    where (qc(:,:) >= obs_qc_pointer)
17       rr(:,:) = inv(:,:) - yy(:,:)
18    elsewhere
19       rr(:,:) = 0.0
20    endwhere
22    if (trace_use) call da_trace_exit("da_residual_new")
24 end subroutine da_residual_new