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 9169 for branches/2017/dev_merge_2017/NEMOGCM/NEMO/LIM_SRC_3/icestp.F90 – NEMO

Ignore:
Timestamp:
2017-12-26T17:32:56+01:00 (6 years ago)
Author:
gm
Message:

dev_merge_2017: all SRC: finalize the removal of useless warning when reading namelist_cfg + remove all nn_closea + nn_msh replaced by a logical

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/LIM_SRC_3/icestp.F90

    r9124 r9169  
    281281      !! ** input   :   Namelist nampar 
    282282      !!------------------------------------------------------------------- 
    283       INTEGER  ::   ios                 ! Local integer output status for namelist read 
     283      INTEGER  ::   ios                 ! Local integer 
     284      !! 
    284285      NAMELIST/nampar/ jpl, nlay_i, nlay_s, nn_virtual_itd, ln_icedyn, ln_icethd, rn_amax_n, rn_amax_s,  & 
    285286         &             cn_icerst_in, cn_icerst_indir, cn_icerst_out, cn_icerst_outdir 
     
    288289      REWIND( numnam_ice_ref )      ! Namelist nampar in reference namelist : Parameters for ice 
    289290      READ  ( numnam_ice_ref, nampar, IOSTAT = ios, ERR = 901) 
    290 901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampar in reference namelist', lwp ) 
    291  
     291901   IF( ios /= 0 )   CALL ctl_nam ( ios , 'nampar in reference namelist', lwp ) 
    292292      REWIND( numnam_ice_cfg )      ! Namelist nampar in configuration namelist : Parameters for ice 
    293293      READ  ( numnam_ice_cfg, nampar, IOSTAT = ios, ERR = 902 ) 
    294 902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampar in configuration namelist', lwp ) 
    295       IF(lwm) WRITE ( numoni, nampar ) 
     294902   IF( ios > 0 )  CALL ctl_nam ( ios , 'nampar in configuration namelist', lwp ) 
     295      IF(lwm) WRITE( numoni, nampar ) 
    296296      ! 
    297297      IF(lwp) THEN                  ! control print 
    298298         WRITE(numout,*) 
    299          WRITE(numout,*) 'par_init: ice parameters shared among all the routines' 
    300          WRITE(numout,*) ' ~~~~~~~' 
    301          WRITE(numout,*) '   Namelist nampar: ' 
    302          WRITE(numout,*) '      number of ice  categories                              jpl    = ', jpl 
    303          WRITE(numout,*) '      number of ice  layers                                  nlay_i = ', nlay_i 
    304          WRITE(numout,*) '      number of snow layers                                  nlay_s = ', nlay_s 
    305          WRITE(numout,*) '      virtual ITD param for jpl=1 (1-3) or not (0)   nn_virtual_itd = ', nn_virtual_itd 
    306          WRITE(numout,*) '      Ice dynamics       (T) or not (F)                   ln_icedyn = ', ln_icedyn 
    307          WRITE(numout,*) '      Ice thermodynamics (T) or not (F)                   ln_icethd = ', ln_icethd 
    308          WRITE(numout,*) '      maximum ice concentration for NH                              = ', rn_amax_n  
    309          WRITE(numout,*) '      maximum ice concentration for SH                              = ', rn_amax_s 
     299         WRITE(numout,*) '   par_init: ice parameters shared among all the routines' 
     300         WRITE(numout,*) '   ~~~~~~~~' 
     301         WRITE(numout,*) '      Namelist nampar: ' 
     302         WRITE(numout,*) '         number of ice  categories                           jpl       = ', jpl 
     303         WRITE(numout,*) '         number of ice  layers                               nlay_i    = ', nlay_i 
     304         WRITE(numout,*) '         number of snow layers                               nlay_s    = ', nlay_s 
     305         WRITE(numout,*) '         virtual ITD param for jpl=1 (1-3) or not (0)   nn_virtual_itd = ', nn_virtual_itd 
     306         WRITE(numout,*) '         Ice dynamics       (T) or not (F)                   ln_icedyn = ', ln_icedyn 
     307         WRITE(numout,*) '         Ice thermodynamics (T) or not (F)                   ln_icethd = ', ln_icethd 
     308         WRITE(numout,*) '         maximum ice concentration for NH                              = ', rn_amax_n  
     309         WRITE(numout,*) '         maximum ice concentration for SH                              = ', rn_amax_s 
    310310      ENDIF 
    311       ! 
    312311      !                                        !--- check consistency 
    313312      IF ( jpl > 1 .AND. nn_virtual_itd == 1 ) THEN 
     
    323322      IF( ln_bdy .AND. ln_icediachk )   CALL ctl_warn('par_init: online conservation check does not work with BDY') 
    324323      ! 
    325       rdt_ice   = REAL(nn_fsbc) * rdt          !--- sea-ice timestep and inverse 
     324      rdt_ice   = REAL(nn_fsbc) * rdt          !--- sea-ice timestep and its inverse 
    326325      r1_rdtice = 1._wp / rdt_ice 
    327       IF( lwp ) WRITE(numout,*) '   ice timestep rdt_ice = ', rdt_ice 
     326      IF(lwp) WRITE(numout,*) 
     327      IF(lwp) WRITE(numout,*) '      ice timestep rdt_ice = nn_fsbc*rdt = ', rdt_ice 
    328328      ! 
    329329      r1_nlay_i = 1._wp / REAL( nlay_i, wp )   !--- inverse of nlay_i and nlay_s 
     
    356356         h_s_b(:,:,:) = 0._wp 
    357357      END WHERE 
    358        
     358      ! 
    359359      ! ice velocities & total concentration 
    360360      at_i_b(:,:)  = SUM( a_i_b(:,:,:), dim=3 ) 
     
    412412      tau_icebfr(:,:)   = 0._wp   ! landfast ice param only (clem: important to keep the init here) 
    413413      cnd_ice   (:,:,:) = 0._wp   ! initialisation of the effective conductivity at the top of ice/snow (Jules coupling) 
    414        
     414      ! 
    415415   END SUBROUTINE diag_set0 
    416416 
Note: See TracChangeset for help on using the changeset viewer.