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/icethd_sal.F90 – NEMO

Ignore:
Timestamp:
2017-12-26T17:32:56+01:00 (7 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/icethd_sal.F90

    r9019 r9169  
    1212   !!   'key_lim3'                                       ESIM sea-ice model 
    1313   !!---------------------------------------------------------------------- 
    14    !!   ice_thd_sal        : salinity variations in the ice 
    15    !!   ice_thd_sal_init   : initialization 
     14   !!   ice_thd_sal      : salinity variations in the ice 
     15   !!   ice_thd_sal_init : initialization 
    1616   !!---------------------------------------------------------------------- 
    1717   USE dom_oce        ! ocean space and time domain 
     
    3232    
    3333   ! ** namelist (namthd_sal) ** 
    34    REAL(wp) ::   rn_sal_gd        ! restoring salinity for gravity drainage [PSU] 
    35    REAL(wp) ::   rn_time_gd       ! restoring time constant for gravity drainage (= 20 days) [s] 
    36    REAL(wp) ::   rn_sal_fl        ! restoring salinity for flushing [PSU] 
    37    REAL(wp) ::   rn_time_fl       ! restoring time constant for gravity drainage (= 10 days) [s] 
     34   REAL(wp) ::   rn_sal_gd     ! restoring salinity for gravity drainage [PSU] 
     35   REAL(wp) ::   rn_time_gd    ! restoring time constant for gravity drainage (= 20 days) [s] 
     36   REAL(wp) ::   rn_sal_fl     ! restoring salinity for flushing [PSU] 
     37   REAL(wp) ::   rn_time_fl    ! restoring time constant for gravity drainage (= 10 days) [s] 
    3838 
    3939   !!---------------------------------------------------------------------- 
     
    5656      !!--------------------------------------------------------------------- 
    5757      LOGICAL, INTENT(in) ::   ld_sal            ! gravity drainage and flushing or not  
     58      ! 
    5859      INTEGER  ::   ji, jk                       ! dummy loop indices  
    5960      REAL(wp) ::   iflush, igravdr              ! local scalars 
     
    6667      !               !---------------------------------------------! 
    6768      CASE( 2 )       !  time varying salinity with linear profile  ! 
    68       !               !---------------------------------------------! 
     69         !            !---------------------------------------------! 
    6970         z1_time_gd = 1._wp / rn_time_gd * rdt_ice 
    7071         z1_time_fl = 1._wp / rn_time_fl * rdt_ice 
    7172         ! 
    7273         DO ji = 1, npti 
    73  
     74            ! 
    7475            !--------------------------------------------------------- 
    7576            !  Update ice salinity from snow-ice and bottom growth 
     
    8283               s_i_1d(ji) = s_i_1d(ji) + zs_i_bg + zs_i_si 
    8384            ENDIF 
    84  
     85            ! 
    8586            IF( ld_sal ) THEN 
    8687               !--------------------------------------------------------- 
     
    100101            ENDIF 
    101102         END DO 
    102  
     103         ! 
    103104         ! Salinity profile 
    104105         CALL ice_var_salprof1d 
    105106         ! 
    106       !         !---------------------------------------------! 
    107       CASE( 3 ) ! constant salinity with a fixed profile      ! (Schwarzacher (1959) multiyear salinity profile(mean = 2.30) 
    108       !         !---------------------------------------------! 
     107         !             !----------------------------------------! 
     108      CASE( 3 )        ! constant salinity with a fixed profile ! (Schwarzacher (1959) multiyear salinity profile (mean = 2.30) 
     109         !             !----------------------------------------! 
    109110         CALL ice_var_salprof1d 
     111         ! 
     112      END SELECT 
    110113      ! 
    111    END SELECT 
    112    ! 
    113114   END SUBROUTINE ice_thd_sal 
    114115 
     
    125126      !! ** input   :   Namelist namthd_sal 
    126127      !!------------------------------------------------------------------- 
    127       INTEGER  ::   ios                 ! Local integer output status for namelist read 
     128      INTEGER  ::   ios   ! Local integer 
    128129      !! 
    129130      NAMELIST/namthd_sal/ nn_icesal, rn_icesal, rn_sal_gd, rn_time_gd,   & 
     
    133134      REWIND( numnam_ice_ref )              ! Namelist namthd_sal in reference namelist : Ice salinity 
    134135      READ  ( numnam_ice_ref, namthd_sal, IOSTAT = ios, ERR = 901) 
    135 901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namthd_sal in reference namelist', lwp ) 
    136       ! 
     136901   IF( ios /= 0 )   CALL ctl_nam ( ios , 'namthd_sal in reference namelist', lwp ) 
    137137      REWIND( numnam_ice_cfg )              ! Namelist namthd_sal in configuration namelist : Ice salinity 
    138138      READ  ( numnam_ice_cfg, namthd_sal, IOSTAT = ios, ERR = 902 ) 
    139 902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namthd_sal in configuration namelist', lwp ) 
     139902   IF( ios >  0 )  CALL ctl_nam ( ios , 'namthd_sal in configuration namelist', lwp ) 
    140140      IF(lwm) WRITE ( numoni, namthd_sal ) 
    141141      ! 
Note: See TracChangeset for help on using the changeset viewer.