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

    r227 r298  
    2727                             STELLARF,TAURAY 
    2828      use datafile_mod, only: datadir 
     29      use mod_phys_lmdz_para, only : is_master 
    2930 
    3031      implicit none 
     
    8283      close(131) 
    8384 
    84       write(*,*) 'setspv: L_NSPECTV = ',L_NSPECTV, 'in the model ' 
    85       write(*,*) '        there are   ',nb, 'entries in ',TRIM(file_path) 
     85      if (is_master) write(*,*) 'setspv: L_NSPECTV = ',L_NSPECTV, 'in the model ' 
     86      if (is_master) write(*,*) '        there are   ',nb, 'entries in ',TRIM(file_path) 
    8687      if(nb.ne.L_NSPECTV) then 
    8788         write(*,*) 'MISMATCH !! I stop here' 
     
    102103!$OMP BARRIER 
    103104 
     105      if (is_master) then 
    104106      print*,'setspv: VI band limits:' 
    105107      do M=1,L_NSPECTV+1 
     
    107109      end do 
    108110      print*,' ' 
     111      end if 
    109112 
    110113!     Set up mean wavenumbers and wavenumber deltas.  Units of  
     
    123126!     Set up stellar spectrum 
    124127 
    125       write(*,*)'setspv: Interpolating stellar spectrum from the hires data...' 
     128      if (is_master) write(*,*)'setspv: Interpolating stellar spectrum from the hires data...' 
    126129      call ave_stelspec(STELLAR) 
    127130 
     
    132135         sum         = sum+STELLARF(N) 
    133136      end do 
    134       write(6,'("setspv: Stellar flux at 1 AU = ",f7.2," W m-2")') sum 
    135       print*,' ' 
     137      if (is_master) write(6,'("setspv: Stellar flux at 1 AU = ",f7.2," W m-2")') sum 
     138      if (is_master) print*,' ' 
    136139 
    137140 
     
    144147         call calc_rayleigh 
    145148      else 
    146          print*,'setspv: No Rayleigh scattering, check for NaN in output!' 
     149         if (is_master) print*,'setspv: No Rayleigh scattering, check for NaN in output!' 
    147150         do N=1,L_NSPECTV 
    148151            TAURAY(N) = 1E-16 
Note: See TracChangeset for help on using the changeset viewer.