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

Last change on this file since 5267 was 5246, checked in by abarral, 4 days ago

Convert fixed-form to free-form sources .F -> .{f,F}90
(WIP: some .F remain, will be handled in subsequent commits)

File size: 411 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.