[8422] | 1 | MODULE icethd_sal |
---|
| 2 | !!====================================================================== |
---|
| 3 | !! *** MODULE icethd_sal *** |
---|
| 4 | !! LIM-3 sea-ice : computation of salinity variations in the ice |
---|
| 5 | !!====================================================================== |
---|
| 6 | !! History : - ! 2003-05 (M. Vancoppenolle) UCL-ASTR first coding for LIM3-1D |
---|
| 7 | !! 3.0 ! 2005-12 (M. Vancoppenolle) adapted to the 3-D version |
---|
| 8 | !! 4.0 ! 2011-02 (G. Madec) dynamical allocation |
---|
| 9 | !!--------------------------------------------------------------------- |
---|
| 10 | #if defined key_lim3 |
---|
| 11 | !!---------------------------------------------------------------------- |
---|
| 12 | !! 'key_lim3' LIM-3 sea-ice model |
---|
| 13 | !!---------------------------------------------------------------------- |
---|
| 14 | !! ice_thd_sal : salinity variations in the ice |
---|
| 15 | !!---------------------------------------------------------------------- |
---|
| 16 | USE par_oce ! ocean parameters |
---|
| 17 | USE phycst ! physical constants (ocean directory) |
---|
| 18 | USE ice ! LIM variables |
---|
| 19 | USE ice1D ! LIM thermodynamics |
---|
[8424] | 20 | USE icevar ! LIM variables |
---|
[8422] | 21 | ! |
---|
| 22 | USE in_out_manager ! I/O manager |
---|
| 23 | USE lib_mpp ! MPP library |
---|
| 24 | USE lib_fortran ! Fortran utilities (allows no signed zero when 'key_nosignedzero' defined) |
---|
| 25 | |
---|
| 26 | IMPLICIT NONE |
---|
| 27 | PRIVATE |
---|
| 28 | |
---|
[8531] | 29 | PUBLIC ice_thd_sal ! called by icethd |
---|
[8422] | 30 | PUBLIC ice_thd_sal_init ! called by ice_init |
---|
[8518] | 31 | |
---|
[8531] | 32 | ! ** namelist (namthd_sal) ** |
---|
| 33 | REAL(wp) :: rn_sal_gd ! restoring salinity for gravity drainage [PSU] |
---|
| 34 | REAL(wp) :: rn_time_gd ! restoring time constant for gravity drainage (= 20 days) [s] |
---|
| 35 | REAL(wp) :: rn_sal_fl ! restoring salinity for flushing [PSU] |
---|
| 36 | REAL(wp) :: rn_time_fl ! restoring time constant for gravity drainage (= 10 days) [s] |
---|
[8422] | 37 | |
---|
| 38 | !!---------------------------------------------------------------------- |
---|
[8486] | 39 | !! NEMO/ICE 4.0 , NEMO Consortium (2017) |
---|
[8422] | 40 | !! $Id: icethd_sal.F90 8420 2017-08-08 12:18:46Z clem $ |
---|
| 41 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
| 42 | !!---------------------------------------------------------------------- |
---|
| 43 | CONTAINS |
---|
| 44 | |
---|
[8531] | 45 | SUBROUTINE ice_thd_sal( ld_sal ) |
---|
[8422] | 46 | !!------------------------------------------------------------------- |
---|
| 47 | !! *** ROUTINE ice_thd_sal *** |
---|
| 48 | !! |
---|
| 49 | !! ** Purpose : computes new salinities in the ice |
---|
| 50 | !! |
---|
| 51 | !! ** Method : 3 possibilities |
---|
| 52 | !! -> nn_icesal = 1 -> Sice = cst [ice salinity constant in both time & space] |
---|
| 53 | !! -> nn_icesal = 2 -> Sice = S(z,t) [Vancoppenolle et al. 2005] |
---|
| 54 | !! -> nn_icesal = 3 -> Sice = S(z) [multiyear ice] |
---|
| 55 | !!--------------------------------------------------------------------- |
---|
[8531] | 56 | LOGICAL, INTENT(in) :: ld_sal ! gravity drainage and flushing or not |
---|
[8422] | 57 | INTEGER :: ji, jk ! dummy loop indices |
---|
| 58 | REAL(wp) :: iflush, igravdr ! local scalars |
---|
| 59 | REAL(wp) :: zs_sni, zsm_i_gd, zsm_i_fl, zsm_i_si, zsm_i_bg ! local scalars |
---|
| 60 | !!--------------------------------------------------------------------- |
---|
| 61 | |
---|
[8498] | 62 | SELECT CASE ( nn_icesal ) |
---|
| 63 | ! |
---|
[8514] | 64 | ! !---------------------------------------------! |
---|
| 65 | CASE( 2 ) ! time varying salinity with linear profile ! |
---|
| 66 | ! !---------------------------------------------! |
---|
[8422] | 67 | DO ji = 1, nidx |
---|
| 68 | |
---|
| 69 | !--------------------------------------------------------- |
---|
| 70 | ! Update ice salinity from snow-ice and bottom growth |
---|
| 71 | !--------------------------------------------------------- |
---|
| 72 | zs_sni = sss_1d(ji) * ( rhoic - rhosn ) * r1_rhoic ! Salinity of snow ice |
---|
| 73 | rswitch = MAX( 0._wp , SIGN( 1._wp , ht_i_1d(ji) - epsi20 ) ) |
---|
| 74 | zsm_i_si = ( zs_sni - sm_i_1d(ji) ) * dh_snowice(ji) / MAX( ht_i_1d(ji), epsi20 ) * rswitch ! snow-ice |
---|
| 75 | zsm_i_bg = ( s_i_new(ji) - sm_i_1d(ji) ) * MAX( 0._wp, dh_i_bott(ji) ) / MAX( ht_i_1d(ji), epsi20 ) * rswitch ! bottom growth |
---|
| 76 | |
---|
| 77 | ! Update salinity (nb: salt flux already included in icethd_dh) |
---|
| 78 | sm_i_1d(ji) = sm_i_1d(ji) + zsm_i_bg + zsm_i_si |
---|
| 79 | |
---|
[8531] | 80 | IF( ld_sal ) THEN |
---|
[8422] | 81 | !--------------------------------------------------------- |
---|
| 82 | ! Update ice salinity from brine drainage and flushing |
---|
| 83 | !--------------------------------------------------------- |
---|
| 84 | iflush = MAX( 0._wp , SIGN( 1._wp , t_su_1d(ji) - rt0 ) ) ! =1 if summer |
---|
| 85 | igravdr = MAX( 0._wp , SIGN( 1._wp , t_bo_1d(ji) - t_su_1d(ji) ) ) ! =1 if t_su < t_bo |
---|
| 86 | zsm_i_gd = - igravdr * MAX( sm_i_1d(ji) - rn_sal_gd , 0._wp ) / rn_time_gd * rdt_ice ! gravity drainage |
---|
| 87 | zsm_i_fl = - iflush * MAX( sm_i_1d(ji) - rn_sal_fl , 0._wp ) / rn_time_fl * rdt_ice ! flushing |
---|
| 88 | |
---|
| 89 | ! Update salinity |
---|
| 90 | sm_i_1d(ji) = sm_i_1d(ji) + zsm_i_fl + zsm_i_gd |
---|
| 91 | |
---|
| 92 | ! Salt flux |
---|
| 93 | sfx_bri_1d(ji) = sfx_bri_1d(ji) - rhoic * a_i_1d(ji) * ht_i_1d(ji) * ( zsm_i_fl + zsm_i_gd ) * r1_rdtice |
---|
| 94 | ENDIF |
---|
| 95 | END DO |
---|
| 96 | |
---|
| 97 | ! Salinity profile |
---|
[8424] | 98 | CALL ice_var_salprof1d |
---|
[8422] | 99 | ! |
---|
[8514] | 100 | ! !---------------------------------------------! |
---|
| 101 | CASE( 3 ) ! constant salinity with a fixed profile ! (Schwarzacher (1959) multiyear salinity profile(mean = 2.30) |
---|
| 102 | ! !---------------------------------------------! |
---|
[8498] | 103 | CALL ice_var_salprof1d |
---|
[8422] | 104 | ! |
---|
[8498] | 105 | END SELECT |
---|
| 106 | ! |
---|
[8422] | 107 | END SUBROUTINE ice_thd_sal |
---|
| 108 | |
---|
| 109 | |
---|
| 110 | SUBROUTINE ice_thd_sal_init |
---|
| 111 | !!------------------------------------------------------------------- |
---|
| 112 | !! *** ROUTINE ice_thd_sal_init *** |
---|
| 113 | !! |
---|
| 114 | !! ** Purpose : initialization of ice salinity parameters |
---|
| 115 | !! |
---|
[8531] | 116 | !! ** Method : Read the namthd_sal namelist and check the parameter |
---|
| 117 | !! values called at the first timestep (nit000) |
---|
[8422] | 118 | !! |
---|
[8531] | 119 | !! ** input : Namelist namthd_sal |
---|
[8422] | 120 | !!------------------------------------------------------------------- |
---|
| 121 | INTEGER :: ios ! Local integer output status for namelist read |
---|
[8486] | 122 | !! |
---|
[8531] | 123 | NAMELIST/namthd_sal/ nn_icesal, rn_icesal, rn_sal_gd, rn_time_gd, & |
---|
[8518] | 124 | & rn_sal_fl, rn_time_fl, rn_simax , rn_simin |
---|
[8422] | 125 | !!------------------------------------------------------------------- |
---|
| 126 | ! |
---|
[8531] | 127 | REWIND( numnam_ice_ref ) ! Namelist namthd_sal in reference namelist : Ice salinity |
---|
| 128 | READ ( numnam_ice_ref, namthd_sal, IOSTAT = ios, ERR = 901) |
---|
| 129 | 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namthd_sal in reference namelist', lwp ) |
---|
[8486] | 130 | ! |
---|
[8531] | 131 | REWIND( numnam_ice_cfg ) ! Namelist namthd_sal in configuration namelist : Ice salinity |
---|
| 132 | READ ( numnam_ice_cfg, namthd_sal, IOSTAT = ios, ERR = 902 ) |
---|
| 133 | 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namthd_sal in configuration namelist', lwp ) |
---|
| 134 | IF(lwm) WRITE ( numoni, namthd_sal ) |
---|
[8422] | 135 | ! |
---|
| 136 | IF(lwp) THEN ! control print |
---|
| 137 | WRITE(numout,*) |
---|
| 138 | WRITE(numout,*) 'ice_thd_sal_init : Ice parameters for salinity ' |
---|
| 139 | WRITE(numout,*) '~~~~~~~~~~~~~~~~' |
---|
[8531] | 140 | WRITE(numout,*) ' Namelist namthd_sal:' |
---|
[8512] | 141 | WRITE(numout,*) ' switch for salinity nn_icesal = ', nn_icesal |
---|
| 142 | WRITE(numout,*) ' bulk salinity value if nn_icesal = 1 rn_icesal = ', rn_icesal |
---|
| 143 | WRITE(numout,*) ' restoring salinity for gravity drainage rn_sal_gd = ', rn_sal_gd |
---|
| 144 | WRITE(numout,*) ' restoring time for for gravity drainage rn_time_gd = ', rn_time_gd |
---|
| 145 | WRITE(numout,*) ' restoring salinity for flushing rn_sal_fl = ', rn_sal_fl |
---|
| 146 | WRITE(numout,*) ' restoring time for flushing rn_time_fl = ', rn_time_fl |
---|
| 147 | WRITE(numout,*) ' Maximum tolerated ice salinity rn_simax = ', rn_simax |
---|
| 148 | WRITE(numout,*) ' Minimum tolerated ice salinity rn_simin = ', rn_simin |
---|
[8422] | 149 | ENDIF |
---|
| 150 | ! |
---|
| 151 | END SUBROUTINE ice_thd_sal_init |
---|
| 152 | |
---|
| 153 | #else |
---|
| 154 | !!---------------------------------------------------------------------- |
---|
| 155 | !! Default option Dummy Module No LIM-3 sea-ice model |
---|
| 156 | !!---------------------------------------------------------------------- |
---|
| 157 | #endif |
---|
[8486] | 158 | |
---|
[8422] | 159 | !!====================================================================== |
---|
| 160 | END MODULE icethd_sal |
---|