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

Last change on this file since 5105 was 5099, checked in by abarral, 2 months ago

Replace most uses of CPP_DUST by the corresponding logical defined in lmdz_cppkeys_wrapper.F90
Convert several files from .F to .f90 to allow Dust to compile w/o rrtm/ecrad
Create lmdz_yoerad.f90
(lint) Remove "!" on otherwise empty line

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