[4] | 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 |
---|
[24] | 14 | !! @note - use icetempmod |
---|
[4] | 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 |
---|
[24] | 26 | use icetempmod |
---|
[4] | 27 | use diagno_mod |
---|
| 28 | use resolmeca_SIA_L1 |
---|
| 29 | use flottab_mod |
---|
| 30 | use sorties_ncdf_grisli |
---|
| 31 | use util_recovery |
---|
[146] | 32 | use bilan_flux_mod |
---|
[4] | 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) |
---|
[9] | 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 |
---|
[4] | 47 | !------------------------------------------------------------------------------------- |
---|
| 48 | |
---|
| 49 | ! aurel neem -> pour initialisation traceurs |
---|
| 50 | call init_tracer |
---|
| 51 | |
---|
[244] | 52 | !initialisation du niveau marin local |
---|
| 53 | call input_rsl |
---|
[4] | 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) |
---|
[32] | 61 | !dcdmr --- GRISLI - LOVECLIM |
---|
| 62 | ! time = tbegin |
---|
| 63 | !dcdmr --- GRISLI - LOVECLIM |
---|
[4] | 64 | call sortie_ncdf_cat |
---|
| 65 | ! else if (icompteur.eq.2) then ! reprise d'un fichier cptr mais sans la topo |
---|
| 66 | ! call read_recovery_temp |
---|
| 67 | |
---|
| 68 | ! else if (icompteur.eq.3) then ! reprise d'un fichier cptr mais sans la topo ni l'eau |
---|
| 69 | ! call read_recovery_temp |
---|
| 70 | ! hwater(:,:)=0. |
---|
| 71 | else |
---|
| 72 | call read_no_recovery |
---|
| 73 | endif |
---|
| 74 | |
---|
[35] | 75 | call sortie_ncdf_cat |
---|
[4] | 76 | |
---|
| 77 | ! calcul de Hmx et Hmy -> shift=-1, dim=1 -> H(i-1,j) |
---|
| 78 | |
---|
| 79 | H(:,:) = max(H(:,:),0.) |
---|
| 80 | hmx(:,:) = 0.5*(H(:,:)+eoshift(H(:,:),shift=-1,boundary=0.,dim=1)) |
---|
| 81 | hmy(:,:) = 0.5*(H(:,:)+eoshift(H(:,:),shift=-1,boundary=0.,dim=2)) |
---|
| 82 | hmx(:,:) = max(hmx(:,:),0.) |
---|
| 83 | hmy(:,:) = max(hmy(:,:),0.) |
---|
| 84 | |
---|
| 85 | |
---|
| 86 | call init_eaubasale ! initialise le calcul des temperatures |
---|
| 87 | |
---|
| 88 | if (geoplace(1:5).ne.'mism3') then |
---|
| 89 | call init_icetemp(Num_rep_42) ! initialise le calcul de temperature |
---|
[24] | 90 | call thermal_prop_icetemp ! appel aux proprietes thermiques |
---|
[4] | 91 | call init_bmelt ! Appel aux tableaux d'initialisation des ice shelves |
---|
| 92 | |
---|
| 93 | else ! initialisation dans le cas mismip |
---|
| 94 | T(:,:,:) = 0. |
---|
| 95 | TPMP(:,:,:) = 0. |
---|
| 96 | bmelt(:,:) = 0. |
---|
| 97 | end if |
---|
| 98 | |
---|
| 99 | !------------------------------------------------------------------------------------- |
---|
| 100 | |
---|
| 101 | !------------------------------------------------------------------------------------- |
---|
| 102 | call init_outshort ! initialisation sorties temporelles |
---|
| 103 | call init_out_ncdf ! initialisation des sorties netcdf |
---|
| 104 | call init_recovery ! initialisation des sorties cptr ou nc |
---|
| 105 | |
---|
| 106 | !------------------------------------------------------------------------------------- |
---|
| 107 | !Appels a l'origine (2005) dans initial |
---|
| 108 | ! |
---|
| 109 | call init_iso ! initialisation de l'isostasie cette routine est dans le module |
---|
| 110 | ! isostasie_mod et dans noisostasie_mod |
---|
| 111 | |
---|
| 112 | |
---|
| 113 | |
---|
| 114 | call init_deformation ! initialisation de la deformation. cette routine est |
---|
| 115 | ! dans le module deformation_mod |
---|
| 116 | |
---|
| 117 | call init_resol_meca ! type d'association SIA L1 |
---|
| 118 | |
---|
| 119 | call initial_heino ! a mettre avant les init sliding et deformation |
---|
| 120 | |
---|
[123] | 121 | call init_furst_schoof ! initialisation furst schoof gr line |
---|
[4] | 122 | |
---|
| 123 | call init_diagno ! initialisation de la resolution equation elliptique vitesses |
---|
| 124 | |
---|
| 125 | call init_sliding ! initialisation du glissement |
---|
| 126 | |
---|
| 127 | call init_spinup ! initialisation du spinup |
---|
| 128 | |
---|
| 129 | call init_dragging ! initialisation du frottement |
---|
| 130 | |
---|
| 131 | call init_icethick ! interverti avec init_dragging |
---|
| 132 | |
---|
| 133 | ! call init_dragging ! initialisation du frottement |
---|
| 134 | |
---|
| 135 | call initial_matrice ! cette routine est dans le module eq_elliptique_mod |
---|
| 136 | |
---|
| 137 | call init_calving |
---|
| 138 | |
---|
[146] | 139 | call init_bilan_flux |
---|
[4] | 140 | ! |
---|
| 141 | !------------------------------------------------------------------------------------- |
---|
| 142 | ! ecriture netcdf apres initialisation |
---|
| 143 | |
---|
| 144 | !!$ if (iter_beta.eq.0) then |
---|
| 145 | !!$ |
---|
| 146 | !!$ if (itracebug.eq.1) call tracebug(' Avant appel routine icethick3') |
---|
| 147 | !!$ call icethick3 |
---|
| 148 | !!$ debug_3D(:,:,88) = S(:,:) |
---|
| 149 | !!$ if (itracebug.eq.1) call tracebug(' Apres appel routine icethick3') |
---|
| 150 | !!$ end if |
---|
| 151 | return |
---|
| 152 | |
---|
| 153 | end subroutine initial |
---|
| 154 | |
---|