43 |
use nr_util, only: pi, assert |
use nr_util, only: pi, assert |
44 |
use paramet_m, only: ip1jm, ip1jmp1 |
use paramet_m, only: ip1jm, ip1jmp1 |
45 |
use phyredem_m, only: phyredem |
use phyredem_m, only: phyredem |
|
use pressure_var, only: pls, p3d |
|
46 |
use q_sat_m, only: q_sat |
use q_sat_m, only: q_sat |
47 |
use regr_lat_time_coefoz_m, only: regr_lat_time_coefoz |
use regr_lat_time_coefoz_m, only: regr_lat_time_coefoz |
48 |
use regr_pr_o3_m, only: regr_pr_o3 |
use regr_pr_o3_m, only: regr_pr_o3 |
107 |
REAL masse(iim + 1, jjm + 1, llm) |
REAL masse(iim + 1, jjm + 1, llm) |
108 |
REAL phi(iim + 1, jjm + 1, llm) |
REAL phi(iim + 1, jjm + 1, llm) |
109 |
REAL pbaru(ip1jmp1, llm), pbarv(ip1jm, llm) |
REAL pbaru(ip1jmp1, llm), pbarv(ip1jm, llm) |
110 |
REAL w(ip1jmp1, llm) |
REAL w(iim + 1, jjm + 1, llm) |
111 |
|
|
112 |
real sig1(klon, llm) ! section adiabatic updraft |
real sig1(klon, llm) ! section adiabatic updraft |
113 |
real w01(klon, llm) ! vertical velocity within adiabatic updraft |
real w01(klon, llm) ! vertical velocity within adiabatic updraft |
114 |
|
|
115 |
|
real pls(iim + 1, jjm + 1, llm) |
116 |
|
! (pressure at mid-layer of LMDZ grid, in Pa) |
117 |
|
! "pls(i, j, l)" is at longitude "rlonv(i)", latitude "rlatu(j)", |
118 |
|
! for layer "l") |
119 |
|
|
120 |
|
REAL p3d(iim + 1, jjm + 1, llm+1) ! pressure at layer interfaces, in Pa |
121 |
|
! ("p3d(i, j, l)" is at longitude "rlonv(i)", latitude "rlatu(j)", |
122 |
|
! for interface "l") |
123 |
|
|
124 |
!--------------------------------- |
!--------------------------------- |
125 |
|
|
126 |
print *, "Call sequence information: etat0" |
print *, "Call sequence information: etat0" |
203 |
if (nqmx >= 5) then |
if (nqmx >= 5) then |
204 |
! Ozone: |
! Ozone: |
205 |
call regr_lat_time_coefoz |
call regr_lat_time_coefoz |
206 |
call regr_pr_o3(q(:, :, :, 5)) |
call regr_pr_o3(p3d, q(:, :, :, 5)) |
207 |
! Convert from mole fraction to mass fraction: |
! Convert from mole fraction to mass fraction: |
208 |
q(:, :, :, 5) = q(:, :, :, 5) * 48. / 29. |
q(:, :, :, 5) = q(:, :, :, 5) * 48. / 29. |
209 |
end if |
end if |
290 |
! V\'erification que somme des sous-surfaces vaut 1 : |
! V\'erification que somme des sous-surfaces vaut 1 : |
291 |
ji = count(abs(sum(pctsrf, dim = 2) - 1.) > EPSFRA) |
ji = count(abs(sum(pctsrf, dim = 2) - 1.) > EPSFRA) |
292 |
IF (ji /= 0) then |
IF (ji /= 0) then |
293 |
PRINT *, 'Probl\`eme r\'epartition sous maille pour ', ji, 'points' |
PRINT *, 'Bad surface percentages for ', ji, 'points' |
294 |
end IF |
end IF |
295 |
|
|
296 |
! Calcul interm\'ediaire : |
! Calcul interm\'ediaire : |