source: LMDZ6/branches/Amaury_dev/libf/phylmd/Dust/kg_to_cm3.f90 @ 5208

Last change on this file since 5208 was 5182, checked in by abarral, 2 months ago

(WIP) Replace REPROBUS CPP KEY by logical
properly name modules

File size: 450 bytes
Line 
1SUBROUTINE kg_to_cm3(pplay, t_seri, tr_seri)
2
3  USE dimphy
4  USE lmdz_infotrac
5  USE lmdz_yomcst
6
7USE lmdz_dimensions, ONLY: iim, jjm, llm, ndm
8  IMPLICIT NONE
9
10
11
12  REAL :: t_seri(klon, klev), pplay(klon, klev)
13  REAL :: tr_seri(klon, klev)
14  REAL :: zrho
15  INTEGER :: i, k
16
17  DO k = 1, klev
18    DO i = 1, klon
19      zrho = pplay(i, k) / t_seri(i, k) / RD
20      tr_seri(i, k) = tr_seri(i, k) / 1.e6 * zrho
21    ENDDO
22  ENDDO
23
24END SUBROUTINE kg_to_cm3
Note: See TracBrowser for help on using the repository browser.