1 subroutine da_pt_to_rho_lin(grid)
3 !---------------------------------------------------------------------------
4 ! Purpose: Calculates density increments from pressure/temperature increments
6 ! Method: Linearised ideal gas law: rho~/rho = p'/p - T'/T
8 ! Assumptions: 1) Model level stored top down.
9 !---------------------------------------------------------------------------
13 type (domain), intent(inout) :: grid
15 if (trace_use) call da_trace_entry("da_pt_to_rho_lin")
17 grid%xa % rho(its:ite,jts:jte,kts:kte) = grid%xb % rho(its:ite,jts:jte,kts:kte) * ( &
18 grid%xa % p(its:ite,jts:jte,kts:kte) / grid%xb % p(its:ite,jts:jte,kts:kte) - &
19 grid%xa % t(its:ite,jts:jte,kts:kte) / grid%xb % t(its:ite,jts:jte,kts:kte))
22 if (trace_use) call da_trace_exit("da_pt_to_rho_lin")
24 end subroutine da_pt_to_rho_lin