Ignore:
Timestamp:
12/02/14 19:21:00 (10 years ago)
Author:
milmd
Message:

Less output messages are written. On 20000 cores it is better. In LMDZ, only master of MPI and OpenMP can write.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/branches/SATURN_DYNAMICO/LMDZ.COMMON/libf/phystd/phyetat0_academic.F90

    r270 r298  
    1111                     inquire_dimension, inquire_dimension_length 
    1212  use slab_ice_h, only: noceanmx 
     13  use mod_phys_lmdz_para, only : is_master 
    1314 
    1415  implicit none 
     
    102103! Ehouarn, if file not found, then call tabfi with nid_start==0 
    103104if (.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' 
    105106  call tabfi (ngrid,0,Lmodif,tab0,day_ini,lmax,p_rad, & 
    106107                   p_omeg,p_g,p_cpp,p_mugaz,p_daysec,time) 
    107108else 
    108109  ! possibility to modify tab_cntrl in tabfi 
    109   write(*,*) 
    110   write(*,*) 'TABFI in phyeta0: Lmodif=',Lmodif," tab0=",tab0 
     110  if (is_master) write(*,*) 
     111  if (is_master) write(*,*) 'TABFI in phyeta0: Lmodif=',Lmodif," tab0=",tab0 
    111112  call tabfi (ngrid,nid_start,Lmodif,tab0,day_ini,lmax,p_rad, & 
    112113                   p_omeg,p_g,p_cpp,p_mugaz,p_daysec,time) 
     
    176177endif 
    177178if (.not.found) then 
    178   write(*,*) "phyetat0: Failed loading <phisfi>" 
     179  if (is_master) write(*,*) "phyetat0: Failed loading <phisfi>" 
    179180  phisfi(:)=0 
    180181else 
    181   write(*,*) "phyetat0: surface geopotential <phisfi> range:", & 
     182  if (is_master) write(*,*) "phyetat0: surface geopotential <phisfi> range:", & 
    182183             minval(phisfi), maxval(phisfi) 
    183184endif 
     
    190191endif 
    191192if (.not.found) then 
    192   write(*,*) "phyetat0: Failed loading <albedodat>" 
     193  if (is_master) write(*,*) "phyetat0: Failed loading <albedodat>" 
    193194  do ig=1,ngrid 
    194195    albedodat(ig)=0. 
    195196  enddo 
    196197else 
    197   write(*,*) "phyetat0: Bare ground albedo <albedodat> range:", & 
     198  if (is_master) write(*,*) "phyetat0: Bare ground albedo <albedodat> range:", & 
    198199             minval(albedodat), maxval(albedodat) 
    199200endif 
     
    208209    zmea(:)=0. 
    209210else 
    210   write(*,*) "phyetat0: <ZMEA> range:", & 
     211  if (is_master) write(*,*) "phyetat0: <ZMEA> range:", & 
    211212             minval(zmea), maxval(zmea) 
    212213endif 
     
    219220endif 
    220221if (.not.found) then 
    221   write(*,*) "phyetat0: Failed loading <ZSTD>" 
     222  if (is_master) write(*,*) "phyetat0: Failed loading <ZSTD>" 
    222223   zstd(:)=0. 
    223224else 
    224   write(*,*) "phyetat0: <ZSTD> range:", & 
     225  if (is_master) write(*,*) "phyetat0: <ZSTD> range:", & 
    225226             minval(zstd), maxval(zstd) 
    226227endif 
     
    233234endif 
    234235if (.not.found) then 
    235   write(*,*) "phyetat0: Failed loading <ZSIG>" 
     236  if (is_master) write(*,*) "phyetat0: Failed loading <ZSIG>" 
    236237  zsig(:)=0. 
    237238else 
    238   write(*,*) "phyetat0: <ZSIG> range:", & 
     239  if (is_master) write(*,*) "phyetat0: <ZSIG> range:", & 
    239240             minval(zsig), maxval(zsig) 
    240241endif 
     
    247248endif 
    248249if (.not.found) then 
    249   write(*,*) "phyetat0: Failed loading <ZGAM>" 
     250  if (is_master) write(*,*) "phyetat0: Failed loading <ZGAM>" 
    250251  zgam(:)=0. 
    251252else 
    252   write(*,*) "phyetat0: <ZGAM> range:", & 
     253  if (is_master) write(*,*) "phyetat0: <ZGAM> range:", & 
    253254             minval(zgam), maxval(zgam) 
    254255endif 
     
    261262endif 
    262263if (.not.found) then 
    263   write(*,*) "phyetat0: Failed loading <ZTHE>" 
     264  if (is_master) write(*,*) "phyetat0: Failed loading <ZTHE>" 
    264265  zthe(:)=0. 
    265266else 
    266   write(*,*) "phyetat0: <ZTHE> range:", & 
     267  if (is_master) write(*,*) "phyetat0: <ZTHE> range:", & 
    267268             minval(zthe), maxval(zthe) 
    268269endif 
     
    278279  !tsurf(:)=175.0 
    279280else 
    280   write(*,*) "phyetat0: Surface temperature <tsurf> range:", & 
     281  if (is_master) write(*,*) "phyetat0: Surface temperature <tsurf> range:", & 
    281282             minval(tsurf), maxval(tsurf) 
    282283endif 
     
    289290endif 
    290291if (.not.found) then 
    291   write(*,*) "phyetat0: Failed loading <emis>" 
     292  if (is_master) write(*,*) "phyetat0: Failed loading <emis>" 
    292293  emis(:)=0.5 
    293294else 
    294   write(*,*) "phyetat0: Surface emissivity <emis> range:", & 
     295  if (is_master) write(*,*) "phyetat0: Surface emissivity <emis> range:", & 
    295296             minval(emis), maxval(emis) 
    296297endif 
     
    303304endif 
    304305if (.not.found) then 
    305   write(*,*) "phyetat0: Failed loading <cloudfrac>" 
     306  if (is_master) write(*,*) "phyetat0: Failed loading <cloudfrac>" 
    306307  cloudfrac(:,:)=0. 
    307308else 
    308   write(*,*) "phyetat0: Cloud fraction <cloudfrac> range:", & 
     309  if (is_master) write(*,*) "phyetat0: Cloud fraction <cloudfrac> range:", & 
    309310             minval(cloudfrac), maxval(cloudfrac) 
    310311endif 
     
    317318endif 
    318319if (.not.found) then 
    319   write(*,*) "phyetat0: Failed loading <totcloudfrac>" 
     320  if (is_master) write(*,*) "phyetat0: Failed loading <totcloudfrac>" 
    320321  totcloudfrac(:)=0.5 
    321322else 
    322   write(*,*) "phyetat0: Total cloud fraction <totcloudfrac> range:", & 
     323  if (is_master) write(*,*) "phyetat0: Total cloud fraction <totcloudfrac> range:", & 
    323324             minval(totcloudfrac), maxval(totcloudfrac) 
    324325endif 
     
    331332endif 
    332333if (.not.found) then 
    333   write(*,*) "phyetat0: Failed loading <hice>" 
     334  if (is_master) write(*,*) "phyetat0: Failed loading <hice>" 
    334335!  call abort 
    335336      do ig=1,ngrid 
     
    337338      enddo 
    338339else 
    339   write(*,*) "phyetat0: Height of oceanic ice <hice> range:", & 
     340  if (is_master) write(*,*) "phyetat0: Height of oceanic ice <hice> range:", & 
    340341             minval(hice), maxval(hice) 
    341342endif 
     
    349350endif 
    350351if (.not.found) then 
    351   write(*,*) "phyetat0: Failed loading <rnat>" 
     352  if (is_master) write(*,*) "phyetat0: Failed loading <rnat>" 
    352353      do ig=1,ngrid 
    353354        rnat(ig)=1. 
     
    362363      enddo 
    363364 
    364   write(*,*) "phyetat0: Nature of surface <rnat> range:", & 
     365  if (is_master) write(*,*) "phyetat0: Nature of surface <rnat> range:", & 
    365366             minval(rnat), maxval(rnat) 
    366367endif 
     
    372373endif 
    373374if (.not.found) then 
    374   write(*,*) "phyetat0: Failed loading <pctsrf_sic>" 
     375  if (is_master) write(*,*) "phyetat0: Failed loading <pctsrf_sic>" 
    375376      do ig=1,ngrid 
    376377      pctsrf_sic(ig)=0. 
    377378      enddo 
    378379else 
    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:", & 
    380381             minval(pctsrf_sic), maxval(pctsrf_sic) 
    381382endif 
     
    387388endif 
    388389if (.not.found) then 
    389   write(*,*) "phyetat0: Failed loading <tslab>" 
     390  if (is_master) write(*,*) "phyetat0: Failed loading <tslab>" 
    390391      do ig=1,ngrid 
    391392      do iq=1,noceanmx 
     
    394395      enddo 
    395396else 
    396   write(*,*) "phyetat0: Slab ocean temperature <tslab> range:", & 
     397  if (is_master) write(*,*) "phyetat0: Slab ocean temperature <tslab> range:", & 
    397398             minval(tslab), maxval(tslab) 
    398399endif 
     
    404405endif 
    405406if (.not.found) then 
    406   write(*,*) "phyetat0: Failed loading <tsea_ice>" 
     407  if (is_master) write(*,*) "phyetat0: Failed loading <tsea_ice>" 
    407408      do ig=1,ngrid 
    408409      tsea_ice(ig)=273.15-1.8 
    409410      enddo 
    410411else 
    411   write(*,*) "phyetat0: Oceanic ice temperature <tsea_ice> range:", & 
     412  if (is_master) write(*,*) "phyetat0: Oceanic ice temperature <tsea_ice> range:", & 
    412413             minval(tsea_ice), maxval(tsea_ice) 
    413414endif 
     
    419420endif 
    420421if (.not.found) then 
    421   write(*,*) "phyetat0: Failed loading <sea_ice>" 
     422  if (is_master) write(*,*) "phyetat0: Failed loading <sea_ice>" 
    422423      do ig=1,ngrid 
    423424      tsea_ice(ig)=0. 
    424425      enddo 
    425426else 
    426   write(*,*) "phyetat0: Oceanic ice quantity <sea_ice> range:", & 
     427  if (is_master) write(*,*) "phyetat0: Oceanic ice quantity <sea_ice> range:", & 
    427428             minval(sea_ice), maxval(sea_ice) 
    428429endif 
     
    438439endif 
    439440if (.not.found) then 
    440   write(*,*) "phyetat0: Failed loading <q2>" 
     441  if (is_master) write(*,*) "phyetat0: Failed loading <q2>" 
    441442  q2(:,:)=0.001 
    442443else 
    443   write(*,*) "phyetat0: PBL wind variance <q2> range:", & 
     444  if (is_master) write(*,*) "phyetat0: PBL wind variance <q2> range:", & 
    444445             minval(q2), maxval(q2) 
    445446endif 
     
    453454      ! "h2o_ice" should be loaded instead 
    454455      txt="h2o_ice" 
    455       write(*,*) 'phyetat0: loading surface tracer', & 
     456      if (is_master) write(*,*) 'phyetat0: loading surface tracer', & 
    456457                           ' h2o_ice instead of h2o_vap' 
    457458    endif 
     
    462463    endif 
    463464    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" 
    466467    else 
    467       write(*,*) "phyetat0: Surface tracer <",trim(txt),"> range:", & 
     468      if (is_master) write(*,*) "phyetat0: Surface tracer <",trim(txt),"> range:", & 
    468469                 minval(qsurf(:,iq)), maxval(qsurf(:,iq)) 
    469470    endif 
Note: See TracChangeset for help on using the changeset viewer.