21 |
use comconst, only: dtvr, daysec, cpp, kappa |
use comconst, only: dtvr, daysec, cpp, kappa |
22 |
use comgeom, only: rlatu, rlonv, rlonu, rlatv, aire_2d, apoln, apols, & |
use comgeom, only: rlatu, rlonv, rlonu, rlatv, aire_2d, apoln, apols, & |
23 |
cu_2d, cv_2d |
cu_2d, cv_2d |
24 |
use comvert, only: ap, bp, preff, pa |
use disvert_m, only: ap, bp, preff, pa |
25 |
use conf_gcm_m, only: day_step, iphysiq, dayref, anneeref |
use conf_gcm_m, only: day_step, iphysiq, dayref, anneeref |
26 |
use dimens_m, only: iim, jjm, llm, nqmx |
use dimens_m, only: iim, jjm, llm, nqmx |
27 |
use dimphy, only: zmasq |
use dimphy, only: zmasq |
39 |
use inidissip_m, only: inidissip |
use inidissip_m, only: inidissip |
40 |
use inifilr_m, only: inifilr |
use inifilr_m, only: inifilr |
41 |
use inigeom_m, only: inigeom |
use inigeom_m, only: inigeom |
42 |
|
use massdair_m, only: massdair |
43 |
use netcdf, only: nf90_nowrite |
use netcdf, only: nf90_nowrite |
44 |
use netcdf95, only: nf95_open, nf95_close, nf95_get_var, nf95_inq_varid |
use netcdf95, only: nf95_open, nf95_close, nf95_get_var, nf95_inq_varid |
45 |
use nr_util, only: pi |
use nr_util, only: pi |
62 |
! (latitude and longitude of a point of the scalar grid identified |
! (latitude and longitude of a point of the scalar grid identified |
63 |
! by a simple index, in °) |
! by a simple index, in °) |
64 |
|
|
65 |
REAL, dimension(iim + 1, jjm + 1, llm):: uvent, t3d, tpot |
REAL, dimension(iim + 1, jjm + 1, llm):: ucov, t3d, tpot |
66 |
REAL vvent(iim + 1, jjm, llm) |
REAL vcov(iim + 1, jjm, llm) |
67 |
|
|
68 |
REAL q3d(iim + 1, jjm + 1, llm, nqmx) |
REAL q3d(iim + 1, jjm + 1, llm, nqmx) |
69 |
! (mass fractions of trace species |
! (mass fractions of trace species |
159 |
PRINT *, "minval(pls) = ", minval(pls) |
PRINT *, "minval(pls) = ", minval(pls) |
160 |
print *, "maxval(pls) = ", maxval(pls) |
print *, "maxval(pls) = ", maxval(pls) |
161 |
|
|
162 |
call start_inter_3d('U', rlonv, rlatv, pls, uvent) |
call start_inter_3d('U', rlonv, rlatv, pls, ucov) |
163 |
forall (l = 1: llm) uvent(:iim, :, l) = uvent(:iim, :, l) * cu_2d(:iim, :) |
forall (l = 1: llm) ucov(:iim, :, l) = ucov(:iim, :, l) * cu_2d(:iim, :) |
164 |
uvent(iim+1, :, :) = uvent(1, :, :) |
ucov(iim+1, :, :) = ucov(1, :, :) |
165 |
|
|
166 |
call start_inter_3d('V', rlonu, rlatu(:jjm), pls(:, :jjm, :), vvent) |
call start_inter_3d('V', rlonu, rlatu(:jjm), pls(:, :jjm, :), vcov) |
167 |
forall (l = 1: llm) vvent(:iim, :, l) = vvent(:iim, :, l) * cv_2d(:iim, :) |
forall (l = 1: llm) vcov(:iim, :, l) = vcov(:iim, :, l) * cv_2d(:iim, :) |
168 |
vvent(iim + 1, :, :) = vvent(1, :, :) |
vcov(iim + 1, :, :) = vcov(1, :, :) |
169 |
|
|
170 |
call start_inter_3d('TEMP', rlonu, rlatv, pls, t3d) |
call start_inter_3d('TEMP', rlonu, rlatv, pls, t3d) |
171 |
PRINT *, 'minval(t3d) = ', minval(t3d) |
PRINT *, 'minval(t3d) = ', minval(t3d) |
309 |
annee_ref = anneeref |
annee_ref = anneeref |
310 |
|
|
311 |
CALL geopot(ip1jmp1, tpot, pk , pks, phis, phi) |
CALL geopot(ip1jmp1, tpot, pk , pks, phis, phi) |
312 |
CALL caldyn0(uvent, vvent, tpot, psol, masse, pk, phis, phi, w, pbaru, & |
CALL caldyn0(ucov, vcov, tpot, psol, masse, pk, phis, phi, w, pbaru, & |
313 |
pbarv) |
pbarv) |
314 |
CALL dynredem0("start.nc", dayref, phis) |
CALL dynredem0("start.nc", dayref, phis) |
315 |
CALL dynredem1("start.nc", vvent, uvent, tpot, q3d, masse, psol, itau=0) |
CALL dynredem1("start.nc", vcov, ucov, tpot, q3d, masse, psol, itau=0) |
316 |
|
|
317 |
! Ecriture état initial physique: |
! Ecriture état initial physique: |
318 |
print *, "iphysiq = ", iphysiq |
print *, "iphysiq = ", iphysiq |