Changeset 1533 for LMDZ4/branches/LMDZ4_AR5/libf/phylmd/ini_paramLMDZ_phy.h
- Timestamp:
- Jun 3, 2011, 7:01:52 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/branches/LMDZ4_AR5/libf/phylmd/ini_paramLMDZ_phy.h
r996 r1533 1 c ym Non implemente en modeparallele1 cIM Implemente en modes sequentiel et parallele 2 2 3 IF (is_sequential) THEN 3 CALL gather(rlat,rlat_glo) 4 CALL bcast(rlat_glo) 5 CALL gather(rlon,rlon_glo) 6 CALL bcast(rlon_glo) 7 8 c$OMP MASTER 9 if (is_mpi_root) then 4 10 c 5 11 zstophy = dtime 6 zout = ecrit_day12 zout = mth_len*un_jour 7 13 c 8 14 idayref = day_ref 9 15 CALL ymds2ju(annee_ref, 1, idayref, 0.0, zjulian) 10 16 c 11 CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlon ,zx_lon)17 CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlon_glo,zx_lon) 12 18 if (iim.gt.1) then 13 19 DO i = 1, iim 14 zx_lon(i,1) = rlon (i+1)15 zx_lon(i,jjmp1) = rlon (i+1)20 zx_lon(i,1) = rlon_glo(i+1) 21 zx_lon(i,jjmp1) = rlon_glo(i+1) 16 22 ENDDO 17 23 endif 18 CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlat ,zx_lat)24 CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlat_glo,zx_lat) 19 25 c 20 26 CALL histbeg("paramLMDZ_phy.nc", 21 . iim,zx_lon(:,1), jjmp1,zx_lat(1,:),27 . np,zx_lon(np:np,1), np,zx_lat(1,np:np), 22 28 . 1,1,1,1, 23 29 . itau_phy, zjulian, dtime, 24 30 . nhori, nid_ctesGCM) 25 31 c 26 c Variables type caractere : plusieurs valeurs possibles27 c28 CALL histdef(nid_ctesGCM, "ocean",29 . "Type ocean utilise: 1=force, 2=slab, 3=couple",30 . "-",iim,jjmp1,nhori, 1,1,1, -99, 32,31 . "once", zstophy,zout)32 c33 CALL histdef(nid_ctesGCM, "type_run",34 . "Type run: 1= CLIM ou ENSP, 2= AMIP ou CFMI",35 . "-",iim,jjmp1,nhori, 1,1,1, -99, 32,36 . "once", zstophy,zout)37 c38 c Variables logiques (1=true, 0=false)39 c40 CALL histdef(nid_ctesGCM, "ok_veget",41 . "Type de modele de vegetation: 1=ORCHIDEE, 0=bucket",42 . "-",iim,jjmp1,nhori, 1,1,1, -99, 32,43 . "once", zstophy,zout)44 c45 CALL histdef(nid_ctesGCM, "ok_journe",46 . "Creation du fichier histday: 1=true, 0=false",47 . "-",iim,jjmp1,nhori, 1,1,1, -99, 32,48 . "once", zstophy,zout)49 c50 CALL histdef(nid_ctesGCM, "ok_mensuel",51 . "Creation du fichier histmth: 1=true, 0=false",52 . "-",iim,jjmp1,nhori, 1,1,1, -99, 32,53 . "once", zstophy,zout)54 c55 CALL histdef(nid_ctesGCM, "ok_instan",56 . "Creation du fichier histins: 1=true, 0=false",57 . "-",iim,jjmp1,nhori, 1,1,1, -99, 32,58 . "once", zstophy,zout)59 c60 CALL histdef(nid_ctesGCM, "ok_ade",61 . "Aerosol direct effect: 1=true, 0=false",62 . "-",iim,jjmp1,nhori, 1,1,1, -99, 32,63 . "once", zstophy,zout)64 c65 CALL histdef(nid_ctesGCM, "ok_aie",66 . "Aerosol indirect effect: 1=true, 0=false",67 . "-",iim,jjmp1,nhori, 1,1,1, -99, 32,68 . "once", zstophy,zout)69 c70 CALL histdef(nid_ctesGCM, "bl95_b0",71 . "Parameter in CDNC-maer link (Boucher&Lohmann 1995)",72 . "-",iim,jjmp1,nhori, 1,1,1, -99, 32,73 . "ave(X)", zstophy,zout)74 c75 CALL histdef(nid_ctesGCM, "bl95_b1",76 . "Parameter in CDNC-maer link (Boucher&Lohmann 1995)",77 . "-",iim,jjmp1,nhori, 1,1,1, -99, 32,78 . "ave(X)", zstophy,zout)79 c80 CALL histdef(nid_ctesGCM, "ip_ebil_phy",81 . "Niveau sortie diags bilan energie cote physique",82 . "-",iim,jjmp1,nhori, 1,1,1, -99, 32,83 . "ave(X)", zstophy,zout)84 c85 32 CALL histdef(nid_ctesGCM, "R_ecc", 86 33 . "Excentricite","-", 87 . iim,jjmp1,nhori, 1,1,1, -99, 32,88 . " once", zstophy,zout)34 . 1,1,nhori, 1,1,1, -99, 32, 35 . "ave", zstophy,zout) 89 36 c 90 37 CALL histdef(nid_ctesGCM, "R_peri", 91 38 . "Equinoxe","-", 92 . iim,jjmp1,nhori, 1,1,1, -99, 32,93 . " once", zstophy,zout)39 . 1,1,nhori, 1,1,1, -99, 32, 40 . "ave", zstophy,zout) 94 41 c 95 42 CALL histdef(nid_ctesGCM, "R_incl", 96 43 . "Inclinaison","deg", 97 . iim,jjmp1,nhori, 1,1,1, -99, 32,98 . " once", zstophy,zout)44 . 1,1,nhori, 1,1,1, -99, 32, 45 . "ave", zstophy,zout) 99 46 c 100 47 CALL histdef(nid_ctesGCM, "solaire", 101 48 . "Constante solaire","W/m2", 102 . iim,jjmp1,nhori, 1,1,1, -99, 32,103 . " once", zstophy,zout)49 . 1,1,nhori, 1,1,1, -99, 32, 50 . "ave", zstophy,zout) 104 51 c 105 52 CALL histdef(nid_ctesGCM, "co2_ppm", 106 53 . "Concentration du CO2", "ppm", 107 . iim,jjmp1,nhori, 1,1,1, -99, 32,54 . 1,1,nhori, 1,1,1, -99, 32, 108 55 . "ave(X)", zstophy,zout) 109 56 c 110 57 CALL histdef(nid_ctesGCM, "CH4_ppb", 111 58 . "Concentration du CH4", "ppb", 112 . iim,jjmp1,nhori, 1,1,1, -99, 32,59 . 1,1,nhori, 1,1,1, -99, 32, 113 60 . "ave(X)", zstophy,zout) 114 61 c 115 62 CALL histdef(nid_ctesGCM, "N2O_ppb", 116 63 . "Concentration du N2O", "ppb", 117 . iim,jjmp1,nhori, 1,1,1, -99, 32,64 . 1,1,nhori, 1,1,1, -99, 32, 118 65 . "ave(X)", zstophy,zout) 119 66 c 120 67 CALL histdef(nid_ctesGCM, "CFC11_ppt", 121 68 . "Concentration du CFC11", "ppt", 122 . iim,jjmp1,nhori, 1,1,1, -99, 32,69 . 1,1,nhori, 1,1,1, -99, 32, 123 70 . "ave(X)", zstophy,zout) 124 71 c 125 72 CALL histdef(nid_ctesGCM, "CFC12_ppt", 126 73 . "Concentration du CFC12", "ppt", 127 . iim,jjmp1,nhori, 1,1,1, -99, 32,74 . 1,1,nhori, 1,1,1, -99, 32, 128 75 . "ave(X)", zstophy,zout) 129 76 c 130 CALL histdef(nid_ctesGCM, " epmax",131 . " Efficacite precip", "-",132 . iim,jjmp1,nhori, 1,1,1, -99, 32,133 . " once", zstophy,zout)77 CALL histdef(nid_ctesGCM, "bils", 78 . "Surface total heat flux", "W m-2", 79 . 1,1,nhori, 1,1,1, -99, 32, 80 . "ave", zstophy,zout) 134 81 c 135 CALL histdef(nid_ctesGCM, " ok_adj_ema",136 . " ok_adj_ema: 1=true, 0=false", "-",137 . iim,jjmp1,nhori, 1,1,1, -99, 32,138 . " once", zstophy,zout)82 CALL histdef(nid_ctesGCM, "evap", 83 . "Evaporation", "kg m-2 s-1", 84 . 1,1,nhori, 1,1,1, -99, 32, 85 . "ave", zstophy,zout) 139 86 c 140 CALL histdef(nid_ctesGCM, " iflag_clw",141 . " iflag_clw", "-",142 . iim,jjmp1,nhori, 1,1,1, -99, 32,143 . " once", zstophy,zout)87 CALL histdef(nid_ctesGCM, "evap_land", 88 . "Land evaporation", "kg m-2 s-1", 89 . 1,1,nhori, 1,1,1, -99, 32, 90 . "ave", zstophy,zout) 144 91 c 145 CALL histdef(nid_ctesGCM, " cld_lc_lsc",146 . " cld_lc_lsc", "-",147 . iim,jjmp1,nhori, 1,1,1, -99, 32,148 . " once", zstophy,zout)92 CALL histdef(nid_ctesGCM, "flat", 93 . "Latent heat flux", "W m-2", 94 . 1,1,nhori, 1,1,1, -99, 32, 95 . "ave", zstophy,zout) 149 96 c 150 CALL histdef(nid_ctesGCM, "cld_lc_con", 151 . "cld_lc_con", "-", 152 . iim,jjmp1,nhori, 1,1,1, -99, 32, 153 . "once", zstophy,zout) 97 CALL histdef(nid_ctesGCM, "nettop0", 98 . "Clear sky net downward radiatif flux at TOA", 99 . "W m-2", 100 . 1,1,nhori, 1,1,1, -99, 32, 101 . "ave", zstophy,zout) 154 102 c 155 CALL histdef(nid_ctesGCM, " cld_tau_lsc",156 . " cld_tau_lsc", "-",157 . iim,jjmp1,nhori, 1,1,1, -99, 32,158 . " once", zstophy,zout)103 CALL histdef(nid_ctesGCM, "nettop", 104 . "Net downward radiatif flux at TOA", "W m-2", 105 . 1,1,nhori, 1,1,1, -99, 32, 106 . "ave", zstophy,zout) 159 107 c 160 CALL histdef(nid_ctesGCM, " cld_tau_con",161 . " cld_tau_con", "-",162 . iim,jjmp1,nhori, 1,1,1, -99, 32,163 . " once", zstophy,zout)108 CALL histdef(nid_ctesGCM, "precip", 109 . "Total precipitation (liq+sol)", "kg m-2 s-1", 110 . 1,1,nhori, 1,1,1, -99, 32, 111 . "ave", zstophy,zout) 164 112 c 165 CALL histdef(nid_ctesGCM, " ffallv_lsc",166 . " ffallv_lsc", "-",167 . iim,jjmp1,nhori, 1,1,1, -99, 32,168 . " once", zstophy,zout)113 CALL histdef(nid_ctesGCM, "tsol", 114 . "Surface temperature", "K", 115 . 1,1,nhori, 1,1,1, -99, 32, 116 . "ave", zstophy,zout) 169 117 c 170 CALL histdef(nid_ctesGCM, " ffallv_con",171 . " ffallv_con", "-",172 . iim,jjmp1,nhori, 1,1,1, -99, 32,173 . " once", zstophy,zout)118 CALL histdef(nid_ctesGCM, "t2m", 119 . "Temperature at 2m", "K", 120 . 1,1,nhori, 1,1,1, -99, 32, 121 . "ave", zstophy,zout) 174 122 c 175 CALL histdef(nid_ctesGCM, "coef_eva", 176 . "coef_eva", "-", 177 . iim,jjmp1,nhori, 1,1,1, -99, 32, 178 . "once", zstophy,zout) 179 c 180 CALL histdef(nid_ctesGCM, "reevap_ice", 181 . "reevap_ice: 1=true, 0=false", "-", 182 . iim,jjmp1,nhori, 1,1,1, -99, 32, 183 . "once", zstophy,zout) 184 c 185 CALL histdef(nid_ctesGCM, "iflag_cldcon", 186 . "iflag_cldcon", "-", 187 . iim,jjmp1,nhori, 1,1,1, -99, 32, 188 . "once", zstophy,zout) 189 c 190 CALL histdef(nid_ctesGCM, "iflag_pdf", 191 . "iflag_pdf", "-", 192 . iim,jjmp1,nhori, 1,1,1, -99, 32, 193 . "once", zstophy,zout) 194 c 195 CALL histdef(nid_ctesGCM, "fact_cldcon", 196 . "fact_cldcon", "-", 197 . iim,jjmp1,nhori, 1,1,1, -99, 32, 198 . "once", zstophy,zout) 199 c 200 CALL histdef(nid_ctesGCM, "facttemps", 201 . "facttemps", "-", 202 . iim,jjmp1,nhori, 1,1,1, -99, 32, 203 . "once", zstophy,zout) 204 c 205 CALL histdef(nid_ctesGCM, "ok_newmicro", 206 . "Nouvelle micro-physique: 1=true, 0=false", 207 . "-",iim,jjmp1,nhori, 1,1,1, -99, 32, 208 . "once", zstophy,zout) 209 c 210 CALL histdef(nid_ctesGCM, "ratqsbas", 211 . "ratqsbas", "-", 212 . iim,jjmp1,nhori, 1,1,1, -99, 32, 213 . "once", zstophy,zout) 214 c 215 CALL histdef(nid_ctesGCM, "ratqshaut", 216 . "ratqshaut", "-", 217 . iim,jjmp1,nhori, 1,1,1, -99, 32, 218 . "once", zstophy,zout) 219 c 220 CALL histdef(nid_ctesGCM, "rad_froid", 221 . "rad_froid", "-", 222 . iim,jjmp1,nhori, 1,1,1, -99, 32, 223 . "once", zstophy,zout) 224 c 225 CALL histdef(nid_ctesGCM, "rad_chau1", 226 . "rad_chau1", "-", 227 . iim,jjmp1,nhori, 1,1,1, -99, 32, 228 . "once", zstophy,zout) 229 c 230 CALL histdef(nid_ctesGCM, "rad_chau2", 231 . "rad_chau2", "-", 232 . iim,jjmp1,nhori, 1,1,1, -99, 32, 233 . "once", zstophy,zout) 234 c 235 CALL histdef(nid_ctesGCM, "top_height", 236 . "top_height", "-", 237 . iim,jjmp1,nhori, 1,1,1, -99, 32, 238 . "once", zstophy,zout) 239 c 240 CALL histdef(nid_ctesGCM, "overlap", 241 . "overlap", "-", 242 . iim,jjmp1,nhori, 1,1,1, -99, 32, 243 . "once", zstophy,zout) 244 c 245 CALL histdef(nid_ctesGCM, "cdmmax", 246 . "cdmmax", "-", 247 . iim,jjmp1,nhori, 1,1,1, -99, 32, 248 . "once", zstophy,zout) 249 c 250 CALL histdef(nid_ctesGCM, "cdhmax", 251 . "cdhmax", "-", 252 . iim,jjmp1,nhori, 1,1,1, -99, 32, 253 . "once", zstophy,zout) 254 c 255 CALL histdef(nid_ctesGCM, "ksta", 256 . "ksta", "-", 257 . iim,jjmp1,nhori, 1,1,1, -99, 32, 258 . "once", zstophy,zout) 259 c 260 CALL histdef(nid_ctesGCM, "ksta_ter", 261 . "ksta_ter", "-", 262 . iim,jjmp1,nhori, 1,1,1, -99, 32, 263 . "once", zstophy,zout) 264 c 265 CALL histdef(nid_ctesGCM, "ok_kzmin", 266 . "ok_kzmin: 1=true, 0=false", "-", 267 . iim,jjmp1,nhori, 1,1,1, -99, 32, 268 . "once", zstophy,zout) 269 c 270 CALL histdef(nid_ctesGCM, "iflag_pbl", 271 . "iflag_pbl", "-", 272 . iim,jjmp1,nhori, 1,1,1, -99, 32, 273 . "once", zstophy,zout) 274 c 275 CALL histdef(nid_ctesGCM, "lev_histhf", 276 . "lev_histhf", "-", 277 . iim,jjmp1,nhori, 1,1,1, -99, 32, 278 . "once", zstophy,zout) 279 c 280 CALL histdef(nid_ctesGCM, "lev_histday", 281 . "lev_histday", "-", 282 . iim,jjmp1,nhori, 1,1,1, -99, 32, 283 . "once", zstophy,zout) 284 c 285 CALL histdef(nid_ctesGCM, "lev_histmth", 286 . "lev_histmth", "-", 287 . iim,jjmp1,nhori, 1,1,1, -99, 32, 288 . "once", zstophy,zout) 289 c 290 CALL histdef(nid_ctesGCM, "ok_isccp", 291 . "Creation fichier histISCCP: 1=true, 0=false", 292 . "-",iim,jjmp1,nhori, 1,1,1, -99, 32, 293 . "once", zstophy,zout) 294 c 295 CALL histdef(nid_ctesGCM, "lonmin_ins", 296 . "lonmin_ins", "-", 297 . iim,jjmp1,nhori, 1,1,1, -99, 32, 298 . "once", zstophy,zout) 299 c 300 CALL histdef(nid_ctesGCM, "lonmax_ins", 301 . "lonmax_ins", "-", 302 . iim,jjmp1,nhori, 1,1,1, -99, 32, 303 . "once", zstophy,zout) 304 c 305 CALL histdef(nid_ctesGCM, "latmin_ins", 306 . "latmin_ins", "-", 307 . iim,jjmp1,nhori, 1,1,1, -99, 32, 308 . "once", zstophy,zout) 309 c 310 CALL histdef(nid_ctesGCM, "latmax_ins", 311 . "latmax_ins", "-", 312 . iim,jjmp1,nhori, 1,1,1, -99, 32, 313 . "once", zstophy,zout) 314 c 315 CALL histdef(nid_ctesGCM, "ecrit_ins", 316 . "ecrit_ins", "-", 317 . iim,jjmp1,nhori, 1,1,1, -99, 32, 318 . "once", zstophy,zout) 319 c 320 CALL histdef(nid_ctesGCM, "ecrit_hf", 321 . "ecrit_hf", "-", 322 . iim,jjmp1,nhori, 1,1,1, -99, 32, 323 . "once", zstophy,zout) 324 c 325 CALL histdef(nid_ctesGCM, "ecrit_day", 326 . "ecrit_day", "-", 327 . iim,jjmp1,nhori, 1,1,1, -99, 32, 328 . "once", zstophy,zout) 329 c 330 CALL histdef(nid_ctesGCM, "ecrit_mth", 331 . "ecrit_mth", "-", 332 . iim,jjmp1,nhori, 1,1,1, -99, 32, 333 . "once", zstophy,zout) 334 c 335 CALL histdef(nid_ctesGCM, "ecrit_tra", 336 . "ecrit_tra", "-", 337 . iim,jjmp1,nhori, 1,1,1, -99, 32, 338 . "once", zstophy,zout) 339 c 340 CALL histdef(nid_ctesGCM, "ecrit_reg", 341 . "ecrit_reg", "-", 342 . iim,jjmp1,nhori, 1,1,1, -99, 32, 343 . "once", zstophy,zout) 344 c 345 CALL histdef(nid_ctesGCM, "freq_ISCCP", 346 . "freq_ISCCP", "-", 347 . iim,jjmp1,nhori, 1,1,1, -99, 32, 348 . "once", zstophy,zout) 349 c 350 CALL histdef(nid_ctesGCM, "ecrit_ISCCP", 351 . "ecrit_ISCCP", "-", 352 . iim,jjmp1,nhori, 1,1,1, -99, 32, 353 . "once", zstophy,zout) 354 c 123 CALL histdef(nid_ctesGCM, "prw", 124 . "Precipitable water", "kg m-2", 125 . 1,1,nhori, 1,1,1, -99, 32, 126 . "ave", zstophy,zout) 355 127 c================================================================= 356 128 c 357 129 CALL histend(nid_ctesGCM) 358 130 359 ENDIF ! is_sequential360 c 131 endif !(is_mpi_root) 132 c$OMP END MASTER 361 133 c=================================================================
Note: See TracChangeset
for help on using the changeset viewer.