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