source: LMDZ6/trunk/libf/phylmd/Dust/kg_to_cm3.f90 @ 5428

Last change on this file since 5428 was 5337, checked in by Laurent Fairhead, 5 weeks ago

Getting rid of dependance to dynamics

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