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

    r227 r298  
    2525      use radcommon_h, only: BWNI,BLAMI,WNOI,DWNI,WAVEI,planckir,sigma 
    2626      use datafile_mod, only: datadir 
     27      use mod_phys_lmdz_para, only : is_master 
    2728 
    2829      implicit none 
     
    105106      close(131) 
    106107 
    107       write(*,*) 'setspi: L_NSPECTI = ',L_NSPECTI, 'in the model ' 
    108       write(*,*) '        there are   ',nb, 'entries in ',TRIM(file_path) 
     108      if (is_master) write(*,*) 'setspi: L_NSPECTI = ',L_NSPECTI, 'in the model ' 
     109      if (is_master) write(*,*) '        there are   ',nb, 'entries in ',TRIM(file_path) 
    109110      if(nb.ne.L_NSPECTI) then 
    110111         write(*,*) 'MISMATCH !! I stop here' 
     
    125126!$OMP BARRIER 
    126127 
     128      if (is_master) then 
    127129      print*,'' 
    128130      print*,'setspi: IR band limits:' 
     
    130132         print*,m,'-->',BWNI(M),' cm^-1' 
    131133      end do 
     134      end if 
    132135 
    133136!     Set up mean wavenumbers and wavenumber deltas.  Units of  
     
    149152!     original planck.f; W m^-2 wavenumber^-1, where wavenumber is in CM^-1. 
    150153 
     154      if (is_master) then 
    151155      print*,'' 
    152156      print*,'setspi: Current Planck integration range:' 
    153157      print*,'T = ',dble(NTstar)/NTfac, ' to ',dble(NTstop)/NTfac,' K.' 
     158      end if 
    154159 
    155160      do NW=1,L_NSPECTI 
     
    173178      ! force planck=sigma*eps*T^4 for each temperature in array 
    174179      if(forceEC)then 
    175          print*,'setspi: Force F=sigma*eps*T^4 for all values of T!' 
     180         if (is_master) print*,'setspi: Force F=sigma*eps*T^4 for all values of T!' 
    176181         do nt=NTstar,NTstop 
    177182            plancksum=0.0D0 
     
    198203            plancksum=plancksum+planckir(NW,nt-NTstar+1)*DWNI(NW)*pi 
    199204         end do 
    200          print*,'setspi: At lower limit:' 
    201          print*,'in model sig*T^4 = ',plancksum,' W m^-2' 
    202          print*,'actual sig*T^4   = ',sigma*(dble(nt)/NTfac)**4,' W m^-2' 
     205         if (is_master) print*,'setspi: At lower limit:' 
     206         if (is_master) print*,'in model sig*T^4 = ',plancksum,' W m^-2' 
     207         if (is_master) print*,'actual sig*T^4   = ',sigma*(dble(nt)/NTfac)**4,' W m^-2' 
    203208          
    204209         ! check energy conservation at upper temperature boundary 
     
    208213            plancksum=plancksum+planckir(NW,nt-NTstar+1)*DWNI(NW)*pi 
    209214         end do 
    210          print*,'setspi: At upper limit:' 
    211          print*,'in model sig*T^4 = ',plancksum,' W m^-2' 
    212          print*,'actual sig*T^4   = ',sigma*(dble(nt)/NTfac)**4,' W m^-2' 
    213          print*,'' 
     215         if (is_master) print*,'setspi: At upper limit:' 
     216         if (is_master) print*,'in model sig*T^4 = ',plancksum,' W m^-2' 
     217         if (is_master) print*,'actual sig*T^4   = ',sigma*(dble(nt)/NTfac)**4,' W m^-2' 
     218         if (is_master) print*,'' 
    214219      endif 
    215220 
Note: See TracChangeset for help on using the changeset viewer.