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

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

Getting rid of dependance to dynamics

File size: 398 bytes
RevLine 
[5246]1SUBROUTINE kg_to_cm3(pplay,t_seri,tr_seri)
2  !
3  USE dimphy
[5337]4  USE infotrac_phy, ONLY: nbtr
[5285]5USE yomcst_mod_h
[5271]6IMPLICIT NONE
[5246]7  !
[5271]8
[5274]9
[5246]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.