17 |
|
|
18 |
! From "etat0_netcdf.F", version 1.3 2005/05/25 13:10:09 |
! From "etat0_netcdf.F", version 1.3 2005/05/25 13:10:09 |
19 |
|
|
|
! This subroutine creates "mask". |
|
|
|
|
20 |
use caldyn0_m, only: caldyn0 |
use caldyn0_m, only: caldyn0 |
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, & |
37 |
use indicesol, only: is_oce, is_sic, is_ter, is_lic, epsfra |
use indicesol, only: is_oce, is_sic, is_ter, is_lic, epsfra |
38 |
use iniadvtrac_m, only: iniadvtrac |
use iniadvtrac_m, only: iniadvtrac |
39 |
use inidissip_m, only: inidissip |
use inidissip_m, only: inidissip |
40 |
|
use inifilr_m, only: inifilr |
41 |
use inigeom_m, only: inigeom |
use inigeom_m, only: inigeom |
42 |
use netcdf, only: nf90_nowrite |
use netcdf, only: nf90_nowrite |
43 |
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 |
51 |
use serre, only: alphax |
use serre, only: alphax |
52 |
USE start_init_orog_m, only: start_init_orog, mask, phis |
USE start_init_orog_m, only: start_init_orog, mask, phis |
53 |
use start_init_phys_m, only: start_init_phys |
use start_init_phys_m, only: start_init_phys |
54 |
use startdyn, only: start_inter_3d, start_init_dyn |
use startdyn, only: start_init_dyn |
55 |
|
use start_inter_3d_m, only: start_inter_3d |
56 |
use temps, only: itau_phy, annee_ref, day_ref |
use temps, only: itau_phy, annee_ref, day_ref |
57 |
|
|
58 |
! Variables local to the procedure: |
! Variables local to the procedure: |
149 |
! Compute pressure on intermediate levels: |
! Compute pressure on intermediate levels: |
150 |
forall(l = 1: llm + 1) p3d(:, :, l) = ap(l) + bp(l) * psol |
forall(l = 1: llm + 1) p3d(:, :, l) = ap(l) + bp(l) * psol |
151 |
CALL exner_hyb(psol, p3d, pks, pk) |
CALL exner_hyb(psol, p3d, pks, pk) |
152 |
IF (MINVAL(pk) == MAXVAL(pk)) stop '"pk" should not be constant' |
IF (MINVAL(pk) == MAXVAL(pk)) then |
153 |
|
print *, '"pk" should not be constant' |
154 |
|
stop 1 |
155 |
|
end IF |
156 |
|
|
157 |
pls = preff * (pk / cpp)**(1. / kappa) |
pls = preff * (pk / cpp)**(1. / kappa) |
158 |
PRINT *, "minval(pls) = ", minval(pls) |
PRINT *, "minval(pls) = ", minval(pls) |
219 |
zpic = pack(zpic_2d, dyn_phy) |
zpic = pack(zpic_2d, dyn_phy) |
220 |
zval = pack(zval_2d, dyn_phy) |
zval = pack(zval_2d, dyn_phy) |
221 |
|
|
222 |
! On initialise les sous-surfaces: |
! On initialise les sous-surfaces. |
223 |
! Lecture du fichier glace de terre pour fixer la fraction de terre |
! Lecture du fichier glace de terre pour fixer la fraction de terre |
224 |
! et de glace de terre: |
! et de glace de terre : |
225 |
CALL flininfo("landiceref.nc", iml_lic, jml_lic, llm_tmp, & |
CALL flininfo("landiceref.nc", iml_lic, jml_lic, llm_tmp, & |
226 |
ttm_tmp, fid) |
ttm_tmp, fid) |
227 |
ALLOCATE(lat_lic(iml_lic, jml_lic)) |
ALLOCATE(lat_lic(iml_lic, jml_lic)) |
232 |
CALL flinopen_nozoom(iml_lic, jml_lic, & |
CALL flinopen_nozoom(iml_lic, jml_lic, & |
233 |
llm_tmp, lon_lic, lat_lic, lev, ttm_tmp, itaul, date, trash, & |
llm_tmp, lon_lic, lat_lic, lev, ttm_tmp, itaul, date, trash, & |
234 |
fid) |
fid) |
235 |
|
CALL flinclo(fid) |
236 |
call nf95_open("landiceref.nc", nf90_nowrite, ncid) |
call nf95_open("landiceref.nc", nf90_nowrite, ncid) |
237 |
call nf95_inq_varid(ncid, 'landice', varid) |
call nf95_inq_varid(ncid, 'landice', varid) |
238 |
call nf95_get_var(ncid, varid, fraclic) |
call nf95_get_var(ncid, varid, fraclic) |
239 |
call nf95_close(ncid) |
call nf95_close(ncid) |
|
CALL flinclo(fid) |
|
240 |
|
|
241 |
! Interpolation sur la grille T du modèle : |
! Interpolation sur la grille T du modèle : |
242 |
PRINT *, 'Dimensions de "landice"' |
PRINT *, 'Dimensions de "landice"' |