New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 10968 for NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/ICB/icbstp.F90 – NEMO

Ignore:
Timestamp:
2019-05-13T11:43:03+02:00 (5 years ago)
Author:
andmirek
Message:

GMED 462 print levels implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/ICB/icbstp.F90

    r10888 r10968  
    8888      IF( nn_verbose_write > 0 .AND. MOD( kt-1 , nn_verbose_write ) == 0 )   ll_verbose = ( nn_verbose_level >= 0 ) 
    8989      ! 
    90       IF( ll_verbose )   WRITE(numicb,9100) nktberg, ndastp, nsec_day 
     90      IF( ll_verbose .AND. numicb /= -1)   WRITE(numicb,9100) nktberg, ndastp, nsec_day 
    9191 9100 FORMAT('kt= ',i8, ' day= ',i8,' secs=',i8) 
    9292      ! 
     
    161161      IF( nn_sample_rate > 0 )   CALL icb_trj_end() 
    162162 
    163       IF(lwp) WRITE(numout,'(a,i6)') 'icebergs: icb_end complete', narea 
     163      IF(lwp .AND. nprint > 0) WRITE(numout,'(a,i6)') 'icebergs: icb_end complete', narea 
    164164      ! 
    165       IF( nn_verbose_level > 0 ) THEN 
     165      IF( nn_verbose_level > 0 .AND. numicb /= -1) THEN 
    166166         CALL flush( numicb ) 
    167167         CLOSE( numicb ) 
Note: See TracChangeset for help on using the changeset viewer.