15 |
! Pour Van-Leer plus vapeur d'eau saturée : iadv(1)=4 |
! Pour Van-Leer plus vapeur d'eau saturée : iadv(1)=4 |
16 |
! Pour Van-Leer : iadv=10 |
! Pour Van-Leer : iadv=10 |
17 |
|
|
18 |
USE IOIPSL, only: ioconf_calendar, histclo |
use abort_gcm_m, only: abort_gcm |
19 |
use dimens_m, only: iim, jjm, llm, nqmx |
use clesphys2, only: read_clesphys2 |
20 |
use dimphy, only: klon |
use com_io_dyn, only: histid, histvid, histaveid |
|
use paramet_m, only: ip1jm, ip1jmp1 |
|
21 |
use comconst, only: daysec, cpp, dtvr, g, rad, r, initialize |
use comconst, only: daysec, cpp, dtvr, g, rad, r, initialize |
22 |
use comdissnew, only: lstardis, nitergdiv, nitergrot, niterh, tetagdiv, & |
use comgeom, only: rlatu, aire_2d, cu_2d, cv_2d, rlonv |
|
tetagrot, tetatemp |
|
23 |
use conf_gcm_m, only: day_step, iperiod, anneeref, dayref, iecri, iphysiq, & |
use conf_gcm_m, only: day_step, iperiod, anneeref, dayref, iecri, iphysiq, & |
24 |
nday, raz_date, periodav, conf_gcm |
nday, raz_date, periodav, conf_gcm |
25 |
use logic, only: iflag_phys |
use dimens_m, only: iim, jjm, llm, nqmx |
26 |
use comgeom, only: rlatu, aire_2d, cu_2d, cv_2d, rlonv |
use dimphy, only: klon |
27 |
use temps, only: day_ref, annee_ref, day_ini, day_end, itau_dyn |
use dynetat0_m, only: dynetat0, day_ini |
28 |
use com_io_dyn, only: histid, histvid, histaveid |
use dynredem0_m, only: dynredem0 |
|
use tracstoke, only: istdyn, istphy |
|
|
use abort_gcm_m, only: abort_gcm |
|
|
use inithist_m, only: inithist |
|
|
use initdynav_m, only: initdynav |
|
|
use dynetat0_m, only: dynetat0 |
|
29 |
use grid_change, only: dyn_phy, init_dyn_phy |
use grid_change, only: dyn_phy, init_dyn_phy |
30 |
use iniadvtrac_m, only: iniadvtrac |
use iniadvtrac_m, only: iniadvtrac |
31 |
|
use inidissip_m, only: inidissip |
32 |
|
use inigeom_m, only: inigeom |
33 |
|
use initdynav_m, only: initdynav |
34 |
|
use inithist_m, only: inithist |
35 |
|
USE calendar, only: ioconf_calendar |
36 |
|
use histcom, only: histclo |
37 |
use leapfrog_m, only: leapfrog |
use leapfrog_m, only: leapfrog |
38 |
use dynredem0_m, only: dynredem0 |
use logic, only: iflag_phys |
39 |
use clesphys2, only: read_clesphys2 |
use paramet_m, only: ip1jm, ip1jmp1 |
40 |
|
use temps, only: day_ref, annee_ref, day_end, itau_dyn |
41 |
|
use tracstoke, only: istdyn, istphy |
42 |
|
|
43 |
IMPLICIT NONE |
IMPLICIT NONE |
44 |
|
|
54 |
REAL phis(iim + 1, jjm + 1) ! géopotentiel au sol |
REAL phis(iim + 1, jjm + 1) ! géopotentiel au sol |
55 |
|
|
56 |
! Variables pour le fichier histoire : |
! Variables pour le fichier histoire : |
57 |
REAL time_0 |
REAL time_0 ! time in day, as a fraction of day, in [0, 1[ |
|
|
|
|
!!INTEGER i |
|
58 |
|
|
59 |
! Calendrier : |
! Calendrier : |
60 |
LOGICAL:: true_calendar = .false. ! default value |
LOGICAL:: true_calendar = .false. ! default value |
147 |
! Initialisation du filtre : |
! Initialisation du filtre : |
148 |
CALL inifilr |
CALL inifilr |
149 |
|
|
150 |
! Initialisation de la dissipation : |
CALL inidissip |
|
CALL inidissip(lstardis, nitergdiv, nitergrot, niterh, tetagdiv, tetagrot, & |
|
|
tetatemp) |
|
|
|
|
151 |
call init_dyn_phy |
call init_dyn_phy |
152 |
|
|
153 |
! Initialisation de la physique : |
! Initialisation de la physique : |
184 |
|
|
185 |
CALL dynredem0("restart.nc", day_end, phis) |
CALL dynredem0("restart.nc", day_end, phis) |
186 |
CALL inithist(day_ref, annee_ref, zdtvr, nqmx, histid, histvid, & |
CALL inithist(day_ref, annee_ref, zdtvr, nqmx, histid, histvid, & |
187 |
infile="dyn_hist.nc", t_ops = iecri * daysec, t_wrt = iecri * daysec) |
t_ops = iecri * daysec, t_wrt = iecri * daysec) |
188 |
CALL initdynav(day_ref, annee_ref, zdtvr, nqmx, histaveid, & |
CALL initdynav(day_ref, annee_ref, zdtvr, nqmx, histaveid, & |
189 |
infile='dyn_hist_ave.nc', t_ops = iperiod * zdtvr, & |
t_ops = iperiod * zdtvr, t_wrt = periodav * daysec) |
|
t_wrt = periodav * daysec) |
|
190 |
|
|
191 |
! Choix des fréquences de stockage pour le hors-ligne : |
! Choix des fréquences de stockage pour le hors-ligne : |
192 |
istdyn = day_step / 4 ! stockage toutes les 6 h = 1 jour / 4 |
istdyn = day_step / 4 ! stockage toutes les 6 h = 1 jour / 4 |