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/sugas_corrk.F90

    r227 r298  
    3030!      use ioipsl_getincom 
    3131      use ioipsl_getincom_p  
     32      use mod_phys_lmdz_para, only : is_master 
    3233      implicit none 
    3334 
     
    105106      do igas=1,ngas 
    106107         read(111,*) gastype(igas) 
    107          print*,'Gas ',igas,' is ',gastype(igas) 
     108         if (is_master) print*,'Gas ',igas,' is ',gastype(igas) 
    108109      enddo 
    109110 
     
    135136 
    136137      ! display the values 
     138      if (is_master) then  
    137139      print*,'Variable gas volume mixing ratios:' 
    138140      do n=1,L_REFVAR 
     
    141143      end do 
    142144      print*,'' 
     145      end if 
    143146 
    144147!======================================================================= 
     
    172175  
    173176      ! display the values 
     177      if (is_master) then 
    174178      print*,'Correlated-k g-space grid:' 
    175179      do n=1,L_NGAUSS 
     
    177181      end do 
    178182      print*,'' 
     183      end if 
    179184 
    180185!======================================================================= 
     
    210215 
    211216      ! display the values 
     217      if (is_master) then 
    212218      print*,'Correlated-k pressure grid (mBar):' 
    213219      do n=1,L_NPREF 
     
    215221      end do 
    216222      print*,'' 
     223      end if 
    217224 
    218225      ! save the min / max matrix values 
     
    255262 
    256263      ! display the values 
     264      if (is_master) then 
    257265      print*,'Correlated-k temperature grid:' 
    258266      do n=1,L_NTREF 
    259267         print*,n,'.',tgasref(n),' K' 
    260268      end do 
     269      end if 
    261270 
    262271      ! save the min / max matrix values 
     
    275284 
    276285      ! display the values 
    277       print*,'' 
    278       print*,'Correlated-k matrix size:'  
    279       print*,'[',L_NTREF,',',L_NPREF,',',L_REFVAR,',',L_NGAUSS,']'  
     286      if (is_master) print*,'' 
     287      if (is_master) print*,'Correlated-k matrix size:'  
     288      if (is_master) print*,'[',L_NTREF,',',L_NPREF,',',L_REFVAR,',',L_NGAUSS,']'  
    280289 
    281290!======================================================================= 
     
    285294!        wavelength used to separate IR from VI in graybody. We will need that anyway 
    286295         IR_VI_wnlimit=3000. 
    287          write(*,*)"graybody: Visible / Infrared separation set at",10000./IR_VI_wnlimit,"um" 
     296         if (is_master) write(*,*)"graybody: Visible / Infrared separation set at",10000./IR_VI_wnlimit,"um" 
    288297          
    289298         nVI_limit=0 
     
    304313      if (graybody) then 
    305314!        constant absorption coefficient in visible 
    306          write(*,*)"graybody: constant absorption coefficient in visible:" 
     315         if (is_master) write(*,*)"graybody: constant absorption coefficient in visible:" 
    307316         kappa_VI=-100000. 
    308317         call getin_p("kappa_VI",kappa_VI) 
    309          write(*,*)" kappa_VI = ",kappa_VI 
     318         if (is_master) write(*,*)" kappa_VI = ",kappa_VI 
    310319         kappa_VI=kappa_VI*1.e4* mugaz * 1.672621e-27    ! conversion from m^2/kg to cm^2/molecule          
    311320       
    312321!        constant absorption coefficient in IR 
    313          write(*,*)"graybody: constant absorption coefficient in InfraRed:" 
     322         if (is_master) write(*,*)"graybody: constant absorption coefficient in InfraRed:" 
    314323         kappa_IR=-100000. 
    315324         call getin_p("kappa_IR",kappa_IR) 
    316          write(*,*)" kappa_IR = ",kappa_IR        
     325         if (is_master) write(*,*)" kappa_IR = ",kappa_IR         
    317326         kappa_IR=kappa_IR*1.e4* mugaz * 1.672621e-27    ! conversion from m^2/kg to cm^2/molecule  
    318327 
    319          write(*,*)"graybody: Visible / Infrared separation set at band: IR=",nIR_limit,", VI=",nVI_limit 
     328         if (is_master) write(*,*)"graybody: Visible / Infrared separation set at band: IR=",nIR_limit,", VI=",nVI_limit 
    320329                
    321330      Else 
     
    330339         if ((corrkdir(1:4).eq.'null'))then   !(TRIM(corrkdir).eq.'null_LowTeffStar')) then 
    331340            gasv8(1:L_NTREF,1:L_NPREF,1:L_REFVAR,1:L_NSPECTV,1:L_NGAUSS)=0.0 
    332             print*,'using no corrk data' 
    333             print*,'Visible corrk gaseous absorption is set to zero if graybody=F' 
     341            if (is_master) print*,'using no corrk data' 
     342            if (is_master) print*,'Visible corrk gaseous absorption is set to zero if graybody=F' 
    334343         else 
    335344            file_id='/corrk_data/'//trim(adjustl(banddir))//'/corrk_gcm_VI.dat'  
     
    363372         end if 
    364373      else 
    365          print*,'Visible corrk gaseous absorption is set to zero.' 
     374         if (is_master) print*,'Visible corrk gaseous absorption is set to zero.' 
    366375         gasv8(1:L_NTREF,1:L_NPREF,1:L_REFVAR,1:L_NSPECTV,1:L_NGAUSS)=0.0 
    367376      endif 
     
    371380      ! INFRA-RED 
    372381      if ((corrkdir(1:4).eq.'null'))then       !.or.(TRIM(corrkdir).eq.'null_LowTeffStar')) then 
    373          print*,'Infrared corrk gaseous absorption is set to zero if graybody=F' 
     382         if (is_master) print*,'Infrared corrk gaseous absorption is set to zero if graybody=F' 
    374383!$OMP MASTER          
    375384         gasi8(1:L_NTREF,1:L_NPREF,1:L_REFVAR,1:L_NSPECTI,1:L_NGAUSS)=0.0 
     
    662671      endif 
    663672 
     673      if (is_master) then 
    664674      print*,'----------------------------------------------------' 
    665675      print*,'And that`s all we have. It`s possible that other' 
     
    667677      print*,'don`t yet have data for it...' 
    668678      print*,'' 
     679      end if 
    669680 
    670681!     Deallocate local arrays 
Note: See TracChangeset for help on using the changeset viewer.