source: LMDZ6/trunk/libf/phylmd/Dust/cm3_to_kg.f90 @ 5409

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

Getting rid of dependance to dynamics

File size: 458 bytes
RevLine 
[5246]1SUBROUTINE cm3_to_kg(pplay,t_seri,tr_seri)
[2630]2
[5246]3  USE dimphy
4  USE indice_sol_mod
[2630]5
[5285]6USE yomcst_mod_h
[5271]7IMPLICIT NONE
[5246]8  !
[5271]9
[5274]10
[5246]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  !JE20150707      RD = 1000.0 * 1.380658E-23 * 6.0221367E+23 / 28.9644
18  DO k = 1, klev
19  DO i = 1, klon
20    zrho=pplay(i,k)/t_seri(i,k)/RD
21    tr_seri(i,k)=tr_seri(i,k)*1.e6/zrho
22  ENDDO
23  ENDDO
24  !
25END SUBROUTINE cm3_to_kg
Note: See TracBrowser for help on using the repository browser.