updated top-level README and version_decl for V4.5 (#1847)
[WRF.git] / var / da / da_ssmi / da_transform_xtozrhoq_adj.inc
blob7738dccbe74614e2ea30317cf5347bcf0a77fb57
1 subroutine da_transform_xtozrhoq_adj(grid, i, j, zh, zf, adj_zrhom)
3    !-----------------------------------------------------------------------
4    ! Purpose: TBD
5    !-----------------------------------------------------------------------
7    implicit none
8    
9    type (domain), intent(inout) :: grid
10    integer,       intent(in)    :: i, j
11    real,          intent(in)    :: ADJ_zrhom  ! gridded height weighted moisture
12    real,          intent(in)    :: zh(mkz)
13    real,          intent(in)    :: zf(mkz+1)
15    integer                      :: k
17    if (trace_use) call da_trace_entry("da_transform_xtozrhoq_adj")
19    do k = 1,mkz
20       grid%xa%rho(i,j,k) = (zf(k)-zf(k+1))*zh(k)*grid%xb%q(i,j,k)*ADJ_zrhom   + grid%xa%rho(i,j,k)
21       grid%xa%q(i,j,k)   = (zf(k)-zf(k+1))*zh(k)*ADJ_zrhom*grid%xb%rho(i,j,k) + grid%xa%q(i,j,k)
22    end do
24    if (trace_use) call da_trace_exit("da_transform_xtozrhoq_adj")
26 end subroutine da_transform_xtozrhoq_adj