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 10948 for NEMO/branches/UKMO/NEMO_4.0_GO8_package_text_diagnostics/src/OCE/ICB/icbini.F90 – NEMO

Ignore:
Timestamp:
2019-05-08T15:01:52+02:00 (5 years ago)
Author:
andmirek
Message:

GMED 462 iceberg model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/NEMO_4.0_GO8_package_text_diagnostics/src/OCE/ICB/icbini.F90

    r10888 r10948  
    8989      !                          ! note that we choose to do this on all processors since we cannot 
    9090      !                          ! predict where icebergs will be ahead of time 
    91       IF( nn_verbose_level > 0) THEN 
     91      numicb=-1 
     92      IF( nn_verbose_level > 0 .AND. nprint>0) THEN 
    9293         CALL ctl_opn( numicb, 'icebergs.stat', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea ) 
     94      ELSE  
     95         IF(lwp) CALL ctl_opn( numicb, 'icebergs.stat', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea )  
    9396      ENDIF 
    9497 
     
    200203      ENDIF 
    201204      ! 
    202       IF( nn_verbose_level > 0) THEN 
     205      IF( nn_verbose_level > 0  .AND. numicb.NE.-1 ) THEN 
    203206         WRITE(numicb,*) 'processor ', narea 
    204207         WRITE(numicb,*) 'jpi, jpj   ', jpi, jpj 
     
    262265         CALL iom_close( inum )                                     ! close file 
    263266         ! 
    264          IF( nn_verbose_level > 0) THEN 
     267         IF( nn_verbose_level > 0  .AND. numicb.NE.-1 ) THEN 
    265268            WRITE(numicb,*) 
    266269            WRITE(numicb,*) '          calving read in a file' 
     
    359362      ibergs = icb_utl_count() 
    360363      CALL mpp_sum('icbini', ibergs) 
    361       IF( nn_verbose_level > 0) THEN 
     364      IF( nn_verbose_level > 0  .AND. numicb.NE.-1 ) THEN 
    362365         WRITE(numicb,'(a,i6,a)') 'diamonds, icb_ini_gen: ',ibergs,' were generated' 
    363366      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.