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/ICE/icerst.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/ICE/icerst.F90

    r10888 r10968  
    6767            clpath = TRIM(cn_icerst_outdir)  
    6868            IF( clpath(LEN_TRIM(clpath):) /= '/' ) clpath = TRIM(clpath)//'/' 
    69             IF(lwp) THEN 
     69            IF(lwp .AND. nprint > 0) THEN 
    7070               WRITE(numout,*) 
    7171               WRITE(numout,*) '             open ice restart NetCDF file: ',TRIM(clpath)//clname 
     
    104104      iter = kt + nn_fsbc - 1   ! ice restarts are written at kt == nitrst - nn_fsbc + 1 
    105105 
    106       IF( iter == nitrst ) THEN 
     106      IF( iter == nitrst .AND. nprint > 0 ) THEN 
    107107         IF(lwp) WRITE(numout,*) 
    108108         IF(lwp) WRITE(numout,*) 'ice_rst_write : write ice restart file  kt =', kt 
     
    176176      !!---------------------------------------------------------------------- 
    177177 
    178       IF(lwp) THEN 
     178      IF(lwp .AND. nprint > 0) THEN 
    179179         WRITE(numout,*) 
    180180         WRITE(numout,*) 'ice_rst_read: read ice NetCDF restart file' 
     
    186186      CALL iom_get( numrir, 'nn_fsbc', zfice ) 
    187187      CALL iom_get( numrir, 'kt_ice' , ziter )     
    188       IF(lwp) WRITE(numout,*) '   read ice restart file at time step    : ', ziter 
    189       IF(lwp) WRITE(numout,*) '   in any case we force it to nit000 - 1 : ', nit000 - 1 
     188      IF(lwp .AND. nprint > 0) WRITE(numout,*) '   read ice restart file at time step    : ', ziter 
     189      IF(lwp .AND. nprint > 0) WRITE(numout,*) '   in any case we force it to nit000 - 1 : ', nit000 - 1 
    190190 
    191191      ! Control of date 
Note: See TracChangeset for help on using the changeset viewer.