Changeset 3296 for LMDZ6/trunk
- Timestamp:
- Mar 23, 2018, 10:13:38 PM (7 years ago)
- Location:
- LMDZ6/trunk/libf/phylmd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/macv2sp.F90
r3287 r3296 36 36 REAL,DIMENSION(klon,klev) :: aod_prof, ssa_prof, asy_prof 37 37 REAL,DIMENSION(klon,klev) :: z, dz 38 REAL,DIMENSION(klon) :: oro, zrho 38 REAL,DIMENSION(klon) :: oro, zrho, zt 39 39 ! 40 40 INTEGER, PARAMETER :: nmon = 12 … … 63 63 ! define the height and dheight arrays 64 64 ! 65 z(:,1) = 0. ! altitude of surface taken as 0 66 DO k = 1, klev-1 67 oro(:) = pphis(:)/RG ! surface height in m 68 zrho(:) = pplay(:, k)/t_seri(:, k)/RD ! air density in kg/m3 69 dz(:,k) = (paprs(:,k)-paprs(:,k+1))/zrho(:)/RG ! layer thickness in m 70 z(:,k+1) = z(:,k) + dz(:,k) ! height of interfaces in m, starting from 0 at surface 65 oro(:) = pphis(:)/RG ! surface height in m 66 ! 67 DO k = 1, klev 68 zrho(:) = pplay(:,k)/t_seri(:,k)/RD ! air density in kg/m3 69 dz(:,k) = (paprs(:,k)-paprs(:,k+1))/zrho(:)/RG ! layer thickness in m 70 IF (k==1) THEN 71 z(:,1) = oro(:) + (paprs(:,1)-pplay(:,1))/zrho(:)/RG ! altitude middle of first layer in m 72 zt(:) = oro(:) + dz(:,1) ! altitude top of first layer in m 73 ELSE 74 z(:,k) = zt(:) + (paprs(:,k)-pplay(:,k))/zrho(:)/RG ! altitude middle of layer k in m 75 zt(:) = zt(:) + dz(:,k) ! altitude top of layer k in m 76 ENDIF 71 77 ENDDO 72 78 ! -
LMDZ6/trunk/libf/phylmd/mo_simple_plumes.F90
r3295 r3296 73 73 USE mod_phys_lmdz_mpi_data, ONLY: is_mpi_root 74 74 USE mod_phys_lmdz_omp_data, ONLY: is_omp_root 75 USE mod_phys_lmdz_para 75 76 ! 76 77 ! ----------
Note: See TracChangeset
for help on using the changeset viewer.