1 |
module limit_mod |
module limit_mod |
2 |
|
|
|
! This module is clean: no C preprocessor directive, no include line. |
|
|
|
|
3 |
IMPLICIT none |
IMPLICIT none |
4 |
|
|
5 |
contains |
contains |
12 |
! It uses files with climatological data. |
! It uses files with climatological data. |
13 |
! Both grids must be regular. |
! Both grids must be regular. |
14 |
|
|
15 |
|
use comgeom, only: rlonu, rlatv |
16 |
|
use conf_dat2d_m, only: conf_dat2d |
17 |
use dimens_m, only: iim, jjm |
use dimens_m, only: iim, jjm |
|
use comconst, only: daysec, dtvr |
|
|
use indicesol, only: epsfra, nbsrf, is_ter, is_oce, is_lic, is_sic |
|
18 |
use dimphy, only: klon, zmasq |
use dimphy, only: klon, zmasq |
|
use conf_gcm_m, only: day_step |
|
|
use comgeom, only: rlonu, rlatv |
|
19 |
use etat0_mod, only: pctsrf |
use etat0_mod, only: pctsrf |
|
use start_init_orog_m, only: mask |
|
|
use conf_dat2d_m, only: conf_dat2d |
|
|
use inter_barxy_m, only: inter_barxy |
|
|
use numer_rec, only: spline, splint |
|
20 |
use grid_change, only: dyn_phy |
use grid_change, only: dyn_phy |
21 |
|
use indicesol, only: epsfra, nbsrf, is_ter, is_oce, is_lic, is_sic |
22 |
|
use inter_barxy_m, only: inter_barxy |
23 |
use netcdf95, only: handle_err, nf95_gw_var, NF95_CLOSE, NF95_DEF_DIM, & |
use netcdf95, only: handle_err, nf95_gw_var, NF95_CLOSE, NF95_DEF_DIM, & |
24 |
nf95_enddef, NF95_CREATE, nf95_inq_dimid, nf95_inquire_dimension, & |
nf95_enddef, NF95_CREATE, nf95_inq_dimid, nf95_inquire_dimension, & |
25 |
nf95_inq_varid, NF95_OPEN |
nf95_inq_varid, NF95_OPEN |
26 |
use netcdf, only: NF90_CLOBBER, nf90_def_var, NF90_FLOAT, NF90_GET_VAR, & |
use netcdf, only: NF90_CLOBBER, nf90_def_var, NF90_FLOAT, NF90_GET_VAR, & |
27 |
NF90_GLOBAL, NF90_NOWRITE, NF90_PUT_ATT, NF90_PUT_VAR, & |
NF90_GLOBAL, NF90_NOWRITE, NF90_PUT_ATT, NF90_PUT_VAR, & |
28 |
NF90_UNLIMITED |
NF90_UNLIMITED |
29 |
|
use numer_rec_95, only: spline, splint |
30 |
|
use start_init_orog_m, only: mask |
31 |
|
use unit_nml_m, only: unit_nml |
32 |
|
|
33 |
! Variables local to the procedure: |
! Variables local to the procedure: |
34 |
|
|
80 |
|
|
81 |
print *, "Enter namelist 'limit_nml'." |
print *, "Enter namelist 'limit_nml'." |
82 |
read (unit=*, nml=limit_nml) |
read (unit=*, nml=limit_nml) |
83 |
write(unit=*, nml=limit_nml) |
write(unit_nml, nml=limit_nml) |
|
|
|
|
! Initializations: |
|
|
dtvr = daysec / real(day_step) |
|
|
CALL inigeom |
|
84 |
|
|
85 |
! Process rugosity: |
! Process rugosity: |
86 |
|
|
152 |
jmdep = size(dlat_ini) |
jmdep = size(dlat_ini) |
153 |
|
|
154 |
call nf95_inq_dimid(ncid, "time", dimid) |
call nf95_inq_dimid(ncid, "time", dimid) |
155 |
call NF95_INQuire_DIMension(ncid, dimid, len=lmdep) |
call NF95_INQuire_DIMension(ncid, dimid, nclen=lmdep) |
156 |
print *, 'lmdep = ', lmdep |
print *, 'lmdep = ', lmdep |
157 |
! PM 28/02/2002 : nouvelle coordonnée temporelle, fichiers AMIP |
! PM 28/02/2002 : nouvelle coordonnée temporelle, fichiers AMIP |
158 |
! pas en jours |
! pas en jours |
251 |
jmdep = size(dlat_ini) |
jmdep = size(dlat_ini) |
252 |
|
|
253 |
call nf95_inq_dimid(ncid, "time", dimid) |
call nf95_inq_dimid(ncid, "time", dimid) |
254 |
call NF95_INQuire_DIMension(ncid, dimid, len=lmdep) |
call NF95_INQuire_DIMension(ncid, dimid, nclen=lmdep) |
255 |
print *, 'lmdep = ', lmdep |
print *, 'lmdep = ', lmdep |
256 |
!PM28/02/2002 : nouvelle coord temporelle fichiers AMIP pas en jours |
!PM28/02/2002 : nouvelle coord temporelle fichiers AMIP pas en jours |
257 |
! Ici on suppose qu'on a 12 mois (de 30 jours). |
! Ici on suppose qu'on a 12 mois (de 30 jours). |