Changeset 298 for codes/icosagcm/branches/SATURN_DYNAMICO/LMDZ.COMMON/libf/phystd/phyetat0_academic.F90
- Timestamp:
- 12/02/14 19:21:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/branches/SATURN_DYNAMICO/LMDZ.COMMON/libf/phystd/phyetat0_academic.F90
r270 r298 11 11 inquire_dimension, inquire_dimension_length 12 12 use slab_ice_h, only: noceanmx 13 use mod_phys_lmdz_para, only : is_master 13 14 14 15 implicit none … … 102 103 ! Ehouarn, if file not found, then call tabfi with nid_start==0 103 104 if (.not.found_file) then 104 write(*,*) 'phyetat0_academic: call tabfi with nid_start=0'105 if (is_master) write(*,*) 'phyetat0_academic: call tabfi with nid_start=0' 105 106 call tabfi (ngrid,0,Lmodif,tab0,day_ini,lmax,p_rad, & 106 107 p_omeg,p_g,p_cpp,p_mugaz,p_daysec,time) 107 108 else 108 109 ! possibility to modify tab_cntrl in tabfi 109 write(*,*)110 write(*,*) 'TABFI in phyeta0: Lmodif=',Lmodif," tab0=",tab0110 if (is_master) write(*,*) 111 if (is_master) write(*,*) 'TABFI in phyeta0: Lmodif=',Lmodif," tab0=",tab0 111 112 call tabfi (ngrid,nid_start,Lmodif,tab0,day_ini,lmax,p_rad, & 112 113 p_omeg,p_g,p_cpp,p_mugaz,p_daysec,time) … … 176 177 endif 177 178 if (.not.found) then 178 write(*,*) "phyetat0: Failed loading <phisfi>"179 if (is_master) write(*,*) "phyetat0: Failed loading <phisfi>" 179 180 phisfi(:)=0 180 181 else 181 write(*,*) "phyetat0: surface geopotential <phisfi> range:", &182 if (is_master) write(*,*) "phyetat0: surface geopotential <phisfi> range:", & 182 183 minval(phisfi), maxval(phisfi) 183 184 endif … … 190 191 endif 191 192 if (.not.found) then 192 write(*,*) "phyetat0: Failed loading <albedodat>"193 if (is_master) write(*,*) "phyetat0: Failed loading <albedodat>" 193 194 do ig=1,ngrid 194 195 albedodat(ig)=0. 195 196 enddo 196 197 else 197 write(*,*) "phyetat0: Bare ground albedo <albedodat> range:", &198 if (is_master) write(*,*) "phyetat0: Bare ground albedo <albedodat> range:", & 198 199 minval(albedodat), maxval(albedodat) 199 200 endif … … 208 209 zmea(:)=0. 209 210 else 210 write(*,*) "phyetat0: <ZMEA> range:", &211 if (is_master) write(*,*) "phyetat0: <ZMEA> range:", & 211 212 minval(zmea), maxval(zmea) 212 213 endif … … 219 220 endif 220 221 if (.not.found) then 221 write(*,*) "phyetat0: Failed loading <ZSTD>"222 if (is_master) write(*,*) "phyetat0: Failed loading <ZSTD>" 222 223 zstd(:)=0. 223 224 else 224 write(*,*) "phyetat0: <ZSTD> range:", &225 if (is_master) write(*,*) "phyetat0: <ZSTD> range:", & 225 226 minval(zstd), maxval(zstd) 226 227 endif … … 233 234 endif 234 235 if (.not.found) then 235 write(*,*) "phyetat0: Failed loading <ZSIG>"236 if (is_master) write(*,*) "phyetat0: Failed loading <ZSIG>" 236 237 zsig(:)=0. 237 238 else 238 write(*,*) "phyetat0: <ZSIG> range:", &239 if (is_master) write(*,*) "phyetat0: <ZSIG> range:", & 239 240 minval(zsig), maxval(zsig) 240 241 endif … … 247 248 endif 248 249 if (.not.found) then 249 write(*,*) "phyetat0: Failed loading <ZGAM>"250 if (is_master) write(*,*) "phyetat0: Failed loading <ZGAM>" 250 251 zgam(:)=0. 251 252 else 252 write(*,*) "phyetat0: <ZGAM> range:", &253 if (is_master) write(*,*) "phyetat0: <ZGAM> range:", & 253 254 minval(zgam), maxval(zgam) 254 255 endif … … 261 262 endif 262 263 if (.not.found) then 263 write(*,*) "phyetat0: Failed loading <ZTHE>"264 if (is_master) write(*,*) "phyetat0: Failed loading <ZTHE>" 264 265 zthe(:)=0. 265 266 else 266 write(*,*) "phyetat0: <ZTHE> range:", &267 if (is_master) write(*,*) "phyetat0: <ZTHE> range:", & 267 268 minval(zthe), maxval(zthe) 268 269 endif … … 278 279 !tsurf(:)=175.0 279 280 else 280 write(*,*) "phyetat0: Surface temperature <tsurf> range:", &281 if (is_master) write(*,*) "phyetat0: Surface temperature <tsurf> range:", & 281 282 minval(tsurf), maxval(tsurf) 282 283 endif … … 289 290 endif 290 291 if (.not.found) then 291 write(*,*) "phyetat0: Failed loading <emis>"292 if (is_master) write(*,*) "phyetat0: Failed loading <emis>" 292 293 emis(:)=0.5 293 294 else 294 write(*,*) "phyetat0: Surface emissivity <emis> range:", &295 if (is_master) write(*,*) "phyetat0: Surface emissivity <emis> range:", & 295 296 minval(emis), maxval(emis) 296 297 endif … … 303 304 endif 304 305 if (.not.found) then 305 write(*,*) "phyetat0: Failed loading <cloudfrac>"306 if (is_master) write(*,*) "phyetat0: Failed loading <cloudfrac>" 306 307 cloudfrac(:,:)=0. 307 308 else 308 write(*,*) "phyetat0: Cloud fraction <cloudfrac> range:", &309 if (is_master) write(*,*) "phyetat0: Cloud fraction <cloudfrac> range:", & 309 310 minval(cloudfrac), maxval(cloudfrac) 310 311 endif … … 317 318 endif 318 319 if (.not.found) then 319 write(*,*) "phyetat0: Failed loading <totcloudfrac>"320 if (is_master) write(*,*) "phyetat0: Failed loading <totcloudfrac>" 320 321 totcloudfrac(:)=0.5 321 322 else 322 write(*,*) "phyetat0: Total cloud fraction <totcloudfrac> range:", &323 if (is_master) write(*,*) "phyetat0: Total cloud fraction <totcloudfrac> range:", & 323 324 minval(totcloudfrac), maxval(totcloudfrac) 324 325 endif … … 331 332 endif 332 333 if (.not.found) then 333 write(*,*) "phyetat0: Failed loading <hice>"334 if (is_master) write(*,*) "phyetat0: Failed loading <hice>" 334 335 ! call abort 335 336 do ig=1,ngrid … … 337 338 enddo 338 339 else 339 write(*,*) "phyetat0: Height of oceanic ice <hice> range:", &340 if (is_master) write(*,*) "phyetat0: Height of oceanic ice <hice> range:", & 340 341 minval(hice), maxval(hice) 341 342 endif … … 349 350 endif 350 351 if (.not.found) then 351 write(*,*) "phyetat0: Failed loading <rnat>"352 if (is_master) write(*,*) "phyetat0: Failed loading <rnat>" 352 353 do ig=1,ngrid 353 354 rnat(ig)=1. … … 362 363 enddo 363 364 364 write(*,*) "phyetat0: Nature of surface <rnat> range:", &365 if (is_master) write(*,*) "phyetat0: Nature of surface <rnat> range:", & 365 366 minval(rnat), maxval(rnat) 366 367 endif … … 372 373 endif 373 374 if (.not.found) then 374 write(*,*) "phyetat0: Failed loading <pctsrf_sic>"375 if (is_master) write(*,*) "phyetat0: Failed loading <pctsrf_sic>" 375 376 do ig=1,ngrid 376 377 pctsrf_sic(ig)=0. 377 378 enddo 378 379 else 379 write(*,*) "phyetat0: Pourcentage of sea ice cover <pctsrf_sic> range:", &380 if (is_master) write(*,*) "phyetat0: Pourcentage of sea ice cover <pctsrf_sic> range:", & 380 381 minval(pctsrf_sic), maxval(pctsrf_sic) 381 382 endif … … 387 388 endif 388 389 if (.not.found) then 389 write(*,*) "phyetat0: Failed loading <tslab>"390 if (is_master) write(*,*) "phyetat0: Failed loading <tslab>" 390 391 do ig=1,ngrid 391 392 do iq=1,noceanmx … … 394 395 enddo 395 396 else 396 write(*,*) "phyetat0: Slab ocean temperature <tslab> range:", &397 if (is_master) write(*,*) "phyetat0: Slab ocean temperature <tslab> range:", & 397 398 minval(tslab), maxval(tslab) 398 399 endif … … 404 405 endif 405 406 if (.not.found) then 406 write(*,*) "phyetat0: Failed loading <tsea_ice>"407 if (is_master) write(*,*) "phyetat0: Failed loading <tsea_ice>" 407 408 do ig=1,ngrid 408 409 tsea_ice(ig)=273.15-1.8 409 410 enddo 410 411 else 411 write(*,*) "phyetat0: Oceanic ice temperature <tsea_ice> range:", &412 if (is_master) write(*,*) "phyetat0: Oceanic ice temperature <tsea_ice> range:", & 412 413 minval(tsea_ice), maxval(tsea_ice) 413 414 endif … … 419 420 endif 420 421 if (.not.found) then 421 write(*,*) "phyetat0: Failed loading <sea_ice>"422 if (is_master) write(*,*) "phyetat0: Failed loading <sea_ice>" 422 423 do ig=1,ngrid 423 424 tsea_ice(ig)=0. 424 425 enddo 425 426 else 426 write(*,*) "phyetat0: Oceanic ice quantity <sea_ice> range:", &427 if (is_master) write(*,*) "phyetat0: Oceanic ice quantity <sea_ice> range:", & 427 428 minval(sea_ice), maxval(sea_ice) 428 429 endif … … 438 439 endif 439 440 if (.not.found) then 440 write(*,*) "phyetat0: Failed loading <q2>"441 if (is_master) write(*,*) "phyetat0: Failed loading <q2>" 441 442 q2(:,:)=0.001 442 443 else 443 write(*,*) "phyetat0: PBL wind variance <q2> range:", &444 if (is_master) write(*,*) "phyetat0: PBL wind variance <q2> range:", & 444 445 minval(q2), maxval(q2) 445 446 endif … … 453 454 ! "h2o_ice" should be loaded instead 454 455 txt="h2o_ice" 455 write(*,*) 'phyetat0: loading surface tracer', &456 if (is_master) write(*,*) 'phyetat0: loading surface tracer', & 456 457 ' h2o_ice instead of h2o_vap' 457 458 endif … … 462 463 endif 463 464 if (.not.found) then 464 write(*,*) "phyetat0: Failed loading <",trim(txt),">"465 write(*,*) " ",trim(txt)," is set to zero"465 if (is_master) write(*,*) "phyetat0: Failed loading <",trim(txt),">" 466 if (is_master) write(*,*) " ",trim(txt)," is set to zero" 466 467 else 467 write(*,*) "phyetat0: Surface tracer <",trim(txt),"> range:", &468 if (is_master) write(*,*) "phyetat0: Surface tracer <",trim(txt),"> range:", & 468 469 minval(qsurf(:,iq)), maxval(qsurf(:,iq)) 469 470 endif
Note: See TracChangeset
for help on using the changeset viewer.