1 | !> \file initial-0.3.f90 |
---|
2 | !!Initialisation du modele |
---|
3 | !< |
---|
4 | |
---|
5 | !> SUBROUTINE initial |
---|
6 | !! Cette routine permet d'initialiser le modele. |
---|
7 | !! \author ... |
---|
8 | !! \date 19 Novembre 1999 |
---|
9 | !! @note Elle appelle toutes les routines d'initialisation des differents packages. |
---|
10 | !! @note C'est cette routine qui est appellee dans le main |
---|
11 | !! @note Used modules: |
---|
12 | !! @note - use module3D_phy |
---|
13 | !! @note - use module_choix |
---|
14 | !! @note - use icetempmod |
---|
15 | !! @note - use diagno_mod |
---|
16 | !! @note - use resolmeca_SIA_L1 |
---|
17 | !! @note - use sorties_ncdf_grisli |
---|
18 | !! @note - use util_recovery |
---|
19 | !< |
---|
20 | |
---|
21 | |
---|
22 | subroutine initial |
---|
23 | |
---|
24 | use module3D_phy |
---|
25 | use module_choix |
---|
26 | use icetempmod |
---|
27 | use diagno_mod |
---|
28 | use resolmeca_SIA_L1 |
---|
29 | use flottab_mod |
---|
30 | use sorties_ncdf_grisli |
---|
31 | use util_recovery |
---|
32 | use bilan_flux_mod |
---|
33 | |
---|
34 | !------------------------------------------------------------------------------------- |
---|
35 | ! nouvelles entrees modulaires janvier 2006 |
---|
36 | call initial_phy() ! La physique |
---|
37 | call initial2 ! Initialisation des tableaux |
---|
38 | ! |
---|
39 | call input_topo() ! La geographie |
---|
40 | |
---|
41 | !------------------------------------------------------ |
---|
42 | ! initialisation du climat (reference et forcage) |
---|
43 | !cdc call input_climat_ref() ! Le climat de reference |
---|
44 | call init_forclim ! parametres du forcage |
---|
45 | call input_clim ! lecture fichiers de forcage |
---|
46 | call init_ablation ! parametres du calcul de l'ablation |
---|
47 | !------------------------------------------------------------------------------------- |
---|
48 | |
---|
49 | ! aurel neem -> pour initialisation traceurs |
---|
50 | call init_tracer |
---|
51 | |
---|
52 | !initialisation du niveau marin local |
---|
53 | call input_rsl |
---|
54 | |
---|
55 | |
---|
56 | ! call input_profile() ! Les fichiers profils |
---|
57 | ! |
---|
58 | |
---|
59 | if (icompteur.ne.0) then ! reprise d un fichier cptr |
---|
60 | call read_recovery(icompteur) |
---|
61 | time = tbegin |
---|
62 | call sortie_ncdf_cat |
---|
63 | ! else if (icompteur.eq.2) then ! reprise d'un fichier cptr mais sans la topo |
---|
64 | ! call read_recovery_temp |
---|
65 | |
---|
66 | ! else if (icompteur.eq.3) then ! reprise d'un fichier cptr mais sans la topo ni l'eau |
---|
67 | ! call read_recovery_temp |
---|
68 | ! hwater(:,:)=0. |
---|
69 | else |
---|
70 | call read_no_recovery |
---|
71 | endif |
---|
72 | |
---|
73 | call sortie_ncdf_cat |
---|
74 | |
---|
75 | ! calcul de Hmx et Hmy -> shift=-1, dim=1 -> H(i-1,j) |
---|
76 | |
---|
77 | H(:,:) = max(H(:,:),0.) |
---|
78 | hmx(:,:) = 0.5*(H(:,:)+eoshift(H(:,:),shift=-1,boundary=0d0,dim=1)) |
---|
79 | hmy(:,:) = 0.5*(H(:,:)+eoshift(H(:,:),shift=-1,boundary=0d0,dim=2)) |
---|
80 | hmx(:,:) = max(hmx(:,:),0.) |
---|
81 | hmy(:,:) = max(hmy(:,:),0.) |
---|
82 | |
---|
83 | |
---|
84 | call init_eaubasale ! initialise le calcul des temperatures |
---|
85 | |
---|
86 | if (geoplace(1:5).ne.'mism3') then |
---|
87 | call init_icetemp(Num_rep_42) ! initialise le calcul de temperature |
---|
88 | call thermal_prop_icetemp ! appel aux proprietes thermiques |
---|
89 | call init_bmelt ! Appel aux tableaux d'initialisation des ice shelves |
---|
90 | |
---|
91 | else ! initialisation dans le cas mismip |
---|
92 | T(:,:,:) = 0. |
---|
93 | TPMP(:,:,:) = 0. |
---|
94 | bmelt(:,:) = 0. |
---|
95 | end if |
---|
96 | |
---|
97 | !------------------------------------------------------------------------------------- |
---|
98 | |
---|
99 | !------------------------------------------------------------------------------------- |
---|
100 | call init_outshort ! initialisation sorties temporelles |
---|
101 | call init_out_ncdf ! initialisation des sorties netcdf |
---|
102 | call init_recovery ! initialisation des sorties cptr ou nc |
---|
103 | |
---|
104 | !------------------------------------------------------------------------------------- |
---|
105 | !Appels a l'origine (2005) dans initial |
---|
106 | ! |
---|
107 | call init_iso ! initialisation de l'isostasie cette routine est dans le module |
---|
108 | ! isostasie_mod et dans noisostasie_mod |
---|
109 | |
---|
110 | |
---|
111 | |
---|
112 | call init_deformation ! initialisation de la deformation. cette routine est |
---|
113 | ! dans le module deformation_mod |
---|
114 | |
---|
115 | call init_resol_meca ! type d'association SIA L1 |
---|
116 | |
---|
117 | call initial_heino ! a mettre avant les init sliding et deformation |
---|
118 | |
---|
119 | call init_furst_schoof ! initialisation furst schoof gr line |
---|
120 | |
---|
121 | call init_diagno ! initialisation de la resolution equation elliptique vitesses |
---|
122 | |
---|
123 | call init_sliding ! initialisation du glissement |
---|
124 | |
---|
125 | call init_spinup ! initialisation du spinup |
---|
126 | |
---|
127 | call init_dragging ! initialisation du frottement |
---|
128 | |
---|
129 | call init_icethick ! interverti avec init_dragging |
---|
130 | |
---|
131 | ! call init_dragging ! initialisation du frottement |
---|
132 | |
---|
133 | call initial_matrice ! cette routine est dans le module eq_elliptique_mod |
---|
134 | |
---|
135 | call init_calving |
---|
136 | |
---|
137 | call init_bilan_flux |
---|
138 | ! |
---|
139 | !------------------------------------------------------------------------------------- |
---|
140 | ! ecriture netcdf apres initialisation |
---|
141 | |
---|
142 | !!$ if (iter_beta.eq.0) then |
---|
143 | !!$ |
---|
144 | !!$ if (itracebug.eq.1) call tracebug(' Avant appel routine icethick3') |
---|
145 | !!$ call icethick3 |
---|
146 | !!$ debug_3D(:,:,88) = S(:,:) |
---|
147 | !!$ if (itracebug.eq.1) call tracebug(' Apres appel routine icethick3') |
---|
148 | !!$ end if |
---|
149 | return |
---|
150 | |
---|
151 | end subroutine initial |
---|
152 | |
---|