[8422] | 1 | MODULE icethd |
---|
| 2 | !!====================================================================== |
---|
| 3 | !! *** MODULE icethd *** |
---|
| 4 | !! LIM-3 : ice thermodynamic |
---|
| 5 | !!====================================================================== |
---|
| 6 | !! History : LIM ! 2000-01 (M.A. Morales Maqueda, H. Goosse, T. Fichefet) LIM-1 |
---|
| 7 | !! 2.0 ! 2002-07 (C. Ethe, G. Madec) LIM-2 (F90 rewriting) |
---|
| 8 | !! 3.0 ! 2005-11 (M. Vancoppenolle) LIM-3 : Multi-layer thermodynamics + salinity variations |
---|
| 9 | !! - ! 2007-04 (M. Vancoppenolle) add ice_thd_glohec, ice_thd_con_dh and ice_thd_con_dif |
---|
| 10 | !! 3.2 ! 2009-07 (M. Vancoppenolle, Y. Aksenov, G. Madec) bug correction in wfx_snw |
---|
| 11 | !! 3.3 ! 2010-11 (G. Madec) corrected snow melting heat (due to factor betas) |
---|
| 12 | !! 4.0 ! 2011-02 (G. Madec) dynamical allocation |
---|
| 13 | !! - ! 2012-05 (C. Rousset) add penetration solar flux |
---|
| 14 | !!---------------------------------------------------------------------- |
---|
| 15 | #if defined key_lim3 |
---|
| 16 | !!---------------------------------------------------------------------- |
---|
| 17 | !! 'key_lim3' LIM3 sea-ice model |
---|
| 18 | !!---------------------------------------------------------------------- |
---|
| 19 | !! ice_thd : thermodynamic of sea ice |
---|
| 20 | !! ice_thd_init : initialisation of sea-ice thermodynamic |
---|
| 21 | !!---------------------------------------------------------------------- |
---|
| 22 | USE phycst ! physical constants |
---|
| 23 | USE dom_oce ! ocean space and time domain variables |
---|
| 24 | USE ice ! sea-ice variables |
---|
| 25 | USE sbc_oce , ONLY : sss_m, sst_m, e3t_m, utau, vtau, ssu_m, ssv_m, frq_m, qns_tot, qsr_tot, sprecip, ln_cpl |
---|
| 26 | USE sbc_ice , ONLY : qsr_oce, qns_oce, qemp_oce, qsr_ice, qns_ice, dqns_ice, evap_ice, qprec_ice, qevap_ice, & |
---|
| 27 | & fr1_i0, fr2_i0, nn_limflx |
---|
| 28 | USE ice1D ! thermodynamic sea-ice variables |
---|
| 29 | USE icethd_dif ! vertical diffusion |
---|
| 30 | USE icethd_dh ! ice-snow growth and melt |
---|
| 31 | USE icethd_da ! lateral melting |
---|
| 32 | USE icethd_sal ! ice salinity |
---|
| 33 | USE icethd_ent ! ice enthalpy redistribution |
---|
| 34 | USE icethd_lac ! lateral accretion |
---|
| 35 | USE iceitd ! remapping thickness distribution |
---|
| 36 | USE icetab ! 1D <==> 2D transformation |
---|
[8424] | 37 | USE icevar ! |
---|
[8422] | 38 | USE icectl ! control print |
---|
| 39 | ! |
---|
| 40 | USE in_out_manager ! I/O manager |
---|
| 41 | USE lbclnk ! lateral boundary condition - MPP links |
---|
| 42 | USE lib_mpp ! MPP library |
---|
| 43 | USE lib_fortran ! Fortran utilities (allows no signed zero when 'key_nosignedzero' defined) |
---|
| 44 | USE timing ! Timing |
---|
| 45 | |
---|
| 46 | IMPLICIT NONE |
---|
| 47 | PRIVATE |
---|
| 48 | |
---|
| 49 | PUBLIC ice_thd ! called by limstp module |
---|
| 50 | PUBLIC ice_thd_init ! called by ice_init |
---|
| 51 | |
---|
| 52 | !! * Substitutions |
---|
| 53 | # include "vectopt_loop_substitute.h90" |
---|
| 54 | !!---------------------------------------------------------------------- |
---|
| 55 | !! NEMO/LIM3 4.0 , UCL - NEMO Consortium (2010) |
---|
| 56 | !! $Id: icethd.F90 8420 2017-08-08 12:18:46Z clem $ |
---|
| 57 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
| 58 | !!---------------------------------------------------------------------- |
---|
| 59 | CONTAINS |
---|
| 60 | |
---|
| 61 | SUBROUTINE ice_thd( kt ) |
---|
| 62 | !!------------------------------------------------------------------- |
---|
| 63 | !! *** ROUTINE ice_thd *** |
---|
| 64 | !! |
---|
| 65 | !! ** Purpose : This routine manages ice thermodynamics |
---|
| 66 | !! |
---|
| 67 | !! ** Action : - Initialisation of some variables |
---|
| 68 | !! - Some preliminary computation (oceanic heat flux |
---|
| 69 | !! at the ice base, snow acc.,heat budget of the leads) |
---|
| 70 | !! - selection of the icy points and put them in an array |
---|
| 71 | !! - call ice_thd_dif for vertical heat diffusion |
---|
| 72 | !! - call ice_thd_dh for vertical ice growth and melt |
---|
| 73 | !! - call ice_thd_ent for enthalpy remapping |
---|
| 74 | !! - call ice_thd_sal for ice desalination |
---|
| 75 | !! - call ice_thd_temp to retrieve temperature from ice enthalpy |
---|
| 76 | !! - back to the geographic grid |
---|
| 77 | !! |
---|
| 78 | !! ** References : |
---|
| 79 | !!--------------------------------------------------------------------- |
---|
| 80 | INTEGER, INTENT(in) :: kt ! number of iteration |
---|
| 81 | ! |
---|
| 82 | INTEGER :: ji, jj, jk, jl ! dummy loop indices |
---|
| 83 | REAL(wp) :: zfric_u, zqld, zqfr, zqfr_neg |
---|
| 84 | REAL(wp) :: zvi_b, zsmv_b, zei_b, zfs_b, zfw_b, zft_b ! conservation check |
---|
| 85 | REAL(wp), PARAMETER :: zfric_umin = 0._wp ! lower bound for the friction velocity (cice value=5.e-04) |
---|
| 86 | REAL(wp), PARAMETER :: zch = 0.0057_wp ! heat transfer coefficient |
---|
| 87 | REAL(wp), DIMENSION(jpi,jpj) :: zu_io, zv_io, zfric ! ice-ocean velocity (m/s) and frictional velocity (m2/s2) |
---|
| 88 | ! |
---|
| 89 | !!------------------------------------------------------------------- |
---|
| 90 | |
---|
| 91 | IF( nn_timing == 1 ) CALL timing_start('icethd') |
---|
| 92 | |
---|
| 93 | IF( kt == nit000 .AND. lwp ) THEN |
---|
[8426] | 94 | WRITE(numout,*) |
---|
| 95 | WRITE(numout,*)' icethd ' |
---|
| 96 | WRITE(numout,*)' ~~~~~~~' |
---|
[8422] | 97 | ENDIF |
---|
| 98 | |
---|
| 99 | ! conservation test |
---|
| 100 | IF( ln_limdiachk ) CALL ice_cons_hsm(0, 'icethd', zvi_b, zsmv_b, zei_b, zfw_b, zfs_b, zft_b) |
---|
| 101 | |
---|
[8424] | 102 | CALL ice_var_glo2eqv |
---|
[8422] | 103 | |
---|
| 104 | !---------------------------------------------! |
---|
| 105 | ! computation of friction velocity at T points |
---|
| 106 | !---------------------------------------------! |
---|
| 107 | IF( ln_limdyn ) THEN |
---|
| 108 | zu_io(:,:) = u_ice(:,:) - ssu_m(:,:) |
---|
| 109 | zv_io(:,:) = v_ice(:,:) - ssv_m(:,:) |
---|
| 110 | DO jj = 2, jpjm1 |
---|
| 111 | DO ji = fs_2, fs_jpim1 |
---|
| 112 | zfric(ji,jj) = rn_cio * ( 0.5_wp * & |
---|
| 113 | & ( zu_io(ji,jj) * zu_io(ji,jj) + zu_io(ji-1,jj) * zu_io(ji-1,jj) & |
---|
| 114 | & + zv_io(ji,jj) * zv_io(ji,jj) + zv_io(ji,jj-1) * zv_io(ji,jj-1) ) ) * tmask(ji,jj,1) |
---|
| 115 | END DO |
---|
| 116 | END DO |
---|
| 117 | ELSE ! if no ice dynamics => transmit directly the atmospheric stress to the ocean |
---|
| 118 | DO jj = 2, jpjm1 |
---|
| 119 | DO ji = fs_2, fs_jpim1 |
---|
| 120 | zfric(ji,jj) = r1_rau0 * SQRT( 0.5_wp * & |
---|
| 121 | & ( utau(ji,jj) * utau(ji,jj) + utau(ji-1,jj) * utau(ji-1,jj) & |
---|
| 122 | & + vtau(ji,jj) * vtau(ji,jj) + vtau(ji,jj-1) * vtau(ji,jj-1) ) ) * tmask(ji,jj,1) |
---|
| 123 | END DO |
---|
| 124 | END DO |
---|
| 125 | ENDIF |
---|
| 126 | CALL lbc_lnk( zfric, 'T', 1. ) |
---|
| 127 | ! |
---|
| 128 | ftr_ice(:,:,:) = 0._wp ! initialization (part of solar radiation transmitted through the ice) |
---|
| 129 | |
---|
| 130 | !--------------------------------------------------------------------! |
---|
| 131 | ! Partial computation of forcing for the thermodynamic sea ice model |
---|
| 132 | !--------------------------------------------------------------------! |
---|
| 133 | DO jj = 1, jpj |
---|
| 134 | DO ji = 1, jpi |
---|
| 135 | rswitch = tmask(ji,jj,1) * MAX( 0._wp , SIGN( 1._wp , at_i(ji,jj) - epsi10 ) ) ! 0 if no ice |
---|
| 136 | ! |
---|
| 137 | ! ! solar irradiance transmission at the mixed layer bottom and used in the lead heat budget |
---|
| 138 | ! ! practically no "direct lateral ablation" |
---|
| 139 | ! |
---|
| 140 | ! ! net downward heat flux from the ice to the ocean, expressed as a function of ocean |
---|
| 141 | ! ! temperature and turbulent mixing (McPhee, 1992) |
---|
| 142 | ! |
---|
| 143 | ! --- Energy received in the lead, zqld is defined everywhere (J.m-2) --- ! |
---|
| 144 | zqld = tmask(ji,jj,1) * rdt_ice * & |
---|
| 145 | & ( ( 1._wp - at_i_b(ji,jj) ) * qsr_oce(ji,jj) * frq_m(ji,jj) + & |
---|
| 146 | & ( 1._wp - at_i_b(ji,jj) ) * qns_oce(ji,jj) + qemp_oce(ji,jj) ) |
---|
| 147 | |
---|
| 148 | ! --- Energy needed to bring ocean surface layer until its freezing (<0, J.m-2) --- ! |
---|
| 149 | ! includes supercooling potential energy (>0) or "above-freezing" energy (<0) |
---|
| 150 | zqfr = tmask(ji,jj,1) * rau0 * rcp * e3t_m(ji,jj) * ( t_bo(ji,jj) - ( sst_m(ji,jj) + rt0 ) ) |
---|
| 151 | |
---|
| 152 | ! --- Above-freezing sensible heat content (J/m2 grid) |
---|
| 153 | zqfr_neg = tmask(ji,jj,1) * rau0 * rcp * e3t_m(ji,jj) * MIN( ( t_bo(ji,jj) - ( sst_m(ji,jj) + rt0 ) ), 0._wp ) |
---|
| 154 | |
---|
| 155 | ! --- Sensible ocean-to-ice heat flux (W/m2) |
---|
| 156 | zfric_u = MAX( SQRT( zfric(ji,jj) ), zfric_umin ) |
---|
| 157 | fhtur(ji,jj) = rswitch * rau0 * rcp * zch * zfric_u * ( ( sst_m(ji,jj) + rt0 ) - t_bo(ji,jj) ) ! W.m-2 |
---|
| 158 | |
---|
| 159 | fhtur(ji,jj) = rswitch * MIN( fhtur(ji,jj), - zqfr_neg * r1_rdtice / MAX( at_i(ji,jj), epsi10 ) ) |
---|
| 160 | ! upper bound for fhtur: the heat retrieved from the ocean must be smaller than the heat necessary to reach |
---|
| 161 | ! the freezing point, so that we do not have SST < T_freeze |
---|
| 162 | ! This implies: - ( fhtur(ji,jj) * at_i(ji,jj) * rtdice ) - zqfr >= 0 |
---|
| 163 | |
---|
| 164 | !-- Energy Budget of the leads (J.m-2), source of lateral accretion. Must be < 0 to form ice |
---|
| 165 | qlead(ji,jj) = MIN( 0._wp , zqld - ( fhtur(ji,jj) * at_i(ji,jj) * rdt_ice ) - zqfr ) |
---|
| 166 | |
---|
| 167 | ! If there is ice and leads are warming, then transfer energy from the lead budget and use it for bottom melting |
---|
| 168 | IF( zqld > 0._wp ) THEN |
---|
| 169 | fhld (ji,jj) = rswitch * zqld * r1_rdtice / MAX( at_i(ji,jj), epsi10 ) ! divided by at_i since this is (re)multiplied by a_i in icethd_dh.F90 |
---|
| 170 | qlead(ji,jj) = 0._wp |
---|
| 171 | ELSE |
---|
| 172 | fhld (ji,jj) = 0._wp |
---|
| 173 | ENDIF |
---|
| 174 | ! |
---|
| 175 | ! Net heat flux on top of the ice-ocean [W.m-2] |
---|
| 176 | ! --------------------------------------------- |
---|
| 177 | hfx_in(ji,jj) = qns_tot(ji,jj) + qsr_tot(ji,jj) |
---|
| 178 | END DO |
---|
| 179 | END DO |
---|
| 180 | |
---|
| 181 | ! In case we bypass open-water ice formation |
---|
| 182 | IF( .NOT. ln_limdO ) qlead(:,:) = 0._wp |
---|
| 183 | ! In case we bypass growing/melting from top and bottom: we suppose ice is impermeable => ocean is isolated from atmosphere |
---|
| 184 | IF( .NOT. ln_limdH ) hfx_in(:,:) = ( 1._wp - at_i_b(:,:) ) * ( qns_oce(:,:) + qsr_oce(:,:) ) + qemp_oce(:,:) |
---|
| 185 | IF( .NOT. ln_limdH ) fhtur (:,:) = 0._wp ; fhld (:,:) = 0._wp |
---|
| 186 | |
---|
| 187 | ! --------------------------------------------------------------------- |
---|
| 188 | ! Net heat flux on top of the ocean after ice thermo (1st step) [W.m-2] |
---|
| 189 | ! --------------------------------------------------------------------- |
---|
| 190 | ! First step here : non solar + precip - qlead - qturb |
---|
| 191 | ! Second step in icethd_dh : heat remaining if total melt (zq_rema) |
---|
| 192 | ! Third step in iceupdate.F90 : heat from ice-ocean mass exchange (zf_mass) + solar |
---|
| 193 | DO jj = 1, jpj |
---|
| 194 | DO ji = 1, jpi |
---|
| 195 | hfx_out(ji,jj) = ( 1._wp - at_i_b(ji,jj) ) * qns_oce(ji,jj) + qemp_oce(ji,jj) & ! Non solar heat flux received by the ocean |
---|
| 196 | & - qlead(ji,jj) * r1_rdtice & ! heat flux taken from the ocean where there is open water ice formation |
---|
| 197 | & - at_i(ji,jj) * fhtur(ji,jj) & ! heat flux taken by turbulence |
---|
| 198 | & - at_i(ji,jj) * fhld(ji,jj) ! heat flux taken during bottom growth/melt |
---|
| 199 | ! (fhld should be 0 while bott growth) |
---|
| 200 | END DO |
---|
| 201 | END DO |
---|
| 202 | |
---|
| 203 | !-------------------------------------------------------------------------------------------! |
---|
| 204 | ! Thermodynamic computation (only on grid points covered by ice) => loop over ice categories |
---|
| 205 | !-------------------------------------------------------------------------------------------! |
---|
| 206 | DO jl = 1, jpl |
---|
| 207 | |
---|
| 208 | ! select ice covered grid points |
---|
| 209 | nidx = 0 ; idxice(:) = 0 |
---|
| 210 | DO jj = 1, jpj |
---|
| 211 | DO ji = 1, jpi |
---|
| 212 | IF ( a_i(ji,jj,jl) > epsi10 ) THEN |
---|
| 213 | nidx = nidx + 1 |
---|
| 214 | idxice(nidx) = (jj - 1) * jpi + ji |
---|
| 215 | ENDIF |
---|
| 216 | END DO |
---|
| 217 | END DO |
---|
| 218 | |
---|
| 219 | IF( lk_mpp ) CALL mpp_ini_ice( nidx , numout ) |
---|
| 220 | |
---|
| 221 | IF( nidx > 0 ) THEN ! If there is no ice, do nothing. |
---|
| 222 | ! |
---|
| 223 | CALL ice_thd_1d2d( jl, 1 ) ! --- Move to 1D arrays --- ! |
---|
| 224 | ! ! --- & Change units of e_i, e_s from J/m2 to J/m3 --- ! |
---|
| 225 | ! |
---|
| 226 | s_i_new (1:nidx) = 0._wp ; dh_s_tot (1:nidx) = 0._wp ! --- some init --- ! (important to have them here) |
---|
| 227 | dh_i_surf (1:nidx) = 0._wp ; dh_i_bott(1:nidx) = 0._wp |
---|
| 228 | dh_snowice(1:nidx) = 0._wp ; dh_i_sub (1:nidx) = 0._wp |
---|
| 229 | ! |
---|
| 230 | IF( ln_limdH ) CALL ice_thd_dif ! --- Ice/Snow Temperature profile --- ! |
---|
| 231 | ! |
---|
| 232 | IF( ln_limdH ) CALL ice_thd_dh ! --- Ice/Snow thickness --- ! |
---|
| 233 | ! |
---|
| 234 | IF( ln_limdH ) CALL ice_thd_ent( e_i_1d(1:nidx,:) ) ! --- Ice enthalpy remapping --- ! |
---|
| 235 | ! |
---|
| 236 | CALL ice_thd_sal ! --- Ice salinity --- ! |
---|
| 237 | ! |
---|
| 238 | CALL ice_thd_temp ! --- temperature update --- ! |
---|
| 239 | ! |
---|
| 240 | IF( ln_limdH ) THEN |
---|
| 241 | IF ( ( nn_monocat == 1 .OR. nn_monocat == 4 ) .AND. jpl == 1 ) THEN |
---|
| 242 | CALL ice_thd_lam ! --- extra lateral melting if monocat --- ! |
---|
| 243 | END IF |
---|
| 244 | END IF |
---|
| 245 | ! |
---|
| 246 | IF( ln_limdA ) CALL ice_thd_da ! --- lateral melting --- ! |
---|
| 247 | ! |
---|
| 248 | CALL ice_thd_1d2d( jl, 2 ) ! --- Change units of e_i, e_s from J/m3 to J/m2 --- ! |
---|
| 249 | ! ! --- & Move to 2D arrays --- ! |
---|
| 250 | ! |
---|
| 251 | IF( lk_mpp ) CALL mpp_comm_free( ncomm_ice ) !RB necessary ?? |
---|
| 252 | ENDIF |
---|
| 253 | ! |
---|
| 254 | END DO |
---|
| 255 | ! update ice age (in case a_i changed, i.e. becomes 0 or lateral melting) |
---|
| 256 | oa_i(:,:,:) = o_i(:,:,:) * a_i(:,:,:) |
---|
| 257 | |
---|
| 258 | IF( ln_limdiachk ) CALL ice_cons_hsm(1, 'icethd', zvi_b, zsmv_b, zei_b, zfw_b, zfs_b, zft_b) |
---|
| 259 | ! |
---|
[8424] | 260 | CALL ice_var_zapsmall ! --- remove very small ice concentration (<1e-10) --- ! |
---|
[8422] | 261 | ! ! & make sure at_i=SUM(a_i) & ato_i=1 where at_i=0 |
---|
| 262 | ! |
---|
| 263 | IF( jpl > 1 ) CALL ice_itd_rem( kt ) ! --- Transport ice between thickness categories --- ! |
---|
| 264 | ! |
---|
| 265 | IF( ln_limdO ) CALL ice_thd_lac ! --- frazil ice growing in leads --- ! |
---|
| 266 | ! |
---|
| 267 | IF( ln_limctl ) CALL ice_prt( kt, iiceprt, jiceprt, 1, ' - ice thermodyn. - ' ) ! control print |
---|
| 268 | IF( ln_ctl ) CALL ice_prt3D( 'icethd' ) ! Control print |
---|
| 269 | ! |
---|
| 270 | IF( nn_timing == 1 ) CALL timing_stop('icethd') |
---|
| 271 | |
---|
| 272 | END SUBROUTINE ice_thd |
---|
| 273 | |
---|
| 274 | |
---|
| 275 | SUBROUTINE ice_thd_temp |
---|
| 276 | !!----------------------------------------------------------------------- |
---|
| 277 | !! *** ROUTINE ice_thd_temp *** |
---|
| 278 | !! |
---|
| 279 | !! ** Purpose : Computes sea ice temperature (Kelvin) from enthalpy |
---|
| 280 | !! |
---|
| 281 | !! ** Method : Formula (Bitz and Lipscomb, 1999) |
---|
| 282 | !!------------------------------------------------------------------- |
---|
| 283 | INTEGER :: ji, jk ! dummy loop indices |
---|
| 284 | REAL(wp) :: ztmelts, zaaa, zbbb, zccc, zdiscrim ! local scalar |
---|
| 285 | !!------------------------------------------------------------------- |
---|
| 286 | ! Recover ice temperature |
---|
| 287 | DO jk = 1, nlay_i |
---|
| 288 | DO ji = 1, nidx |
---|
| 289 | ztmelts = -tmut * s_i_1d(ji,jk) + rt0 |
---|
| 290 | ! Conversion q(S,T) -> T (second order equation) |
---|
| 291 | zaaa = cpic |
---|
| 292 | zbbb = ( rcp - cpic ) * ( ztmelts - rt0 ) + e_i_1d(ji,jk) * r1_rhoic - lfus |
---|
| 293 | zccc = lfus * ( ztmelts - rt0 ) |
---|
| 294 | zdiscrim = SQRT( MAX( zbbb * zbbb - 4._wp * zaaa * zccc, 0._wp ) ) |
---|
| 295 | t_i_1d(ji,jk) = rt0 - ( zbbb + zdiscrim ) / ( 2._wp * zaaa ) |
---|
| 296 | |
---|
| 297 | ! mask temperature |
---|
| 298 | rswitch = 1._wp - MAX( 0._wp , SIGN( 1._wp , - ht_i_1d(ji) ) ) |
---|
| 299 | t_i_1d(ji,jk) = rswitch * t_i_1d(ji,jk) + ( 1._wp - rswitch ) * rt0 |
---|
| 300 | END DO |
---|
| 301 | END DO |
---|
| 302 | ! |
---|
| 303 | END SUBROUTINE ice_thd_temp |
---|
| 304 | |
---|
| 305 | |
---|
| 306 | SUBROUTINE ice_thd_lam |
---|
| 307 | !!----------------------------------------------------------------------- |
---|
| 308 | !! *** ROUTINE ice_thd_lam *** |
---|
| 309 | !! |
---|
| 310 | !! ** Purpose : Lateral melting in case monocategory |
---|
| 311 | !! ( dA = A/2h dh ) |
---|
| 312 | !!----------------------------------------------------------------------- |
---|
| 313 | INTEGER :: ji ! dummy loop indices |
---|
| 314 | REAL(wp) :: zhi_bef ! ice thickness before thermo |
---|
| 315 | REAL(wp) :: zdh_mel, zda_mel ! net melting |
---|
| 316 | REAL(wp) :: zvi, zvs ! ice/snow volumes |
---|
| 317 | !!----------------------------------------------------------------------- |
---|
| 318 | ! |
---|
| 319 | DO ji = 1, nidx |
---|
| 320 | zdh_mel = MIN( 0._wp, dh_i_surf(ji) + dh_i_bott(ji) + dh_snowice(ji) + dh_i_sub(ji) ) |
---|
| 321 | IF( zdh_mel < 0._wp .AND. a_i_1d(ji) > 0._wp ) THEN |
---|
| 322 | zvi = a_i_1d(ji) * ht_i_1d(ji) |
---|
| 323 | zvs = a_i_1d(ji) * ht_s_1d(ji) |
---|
| 324 | ! lateral melting = concentration change |
---|
| 325 | zhi_bef = ht_i_1d(ji) - zdh_mel |
---|
| 326 | rswitch = MAX( 0._wp , SIGN( 1._wp , zhi_bef - epsi20 ) ) |
---|
| 327 | zda_mel = rswitch * a_i_1d(ji) * zdh_mel / ( 2._wp * MAX( zhi_bef, epsi20 ) ) |
---|
| 328 | a_i_1d(ji) = MAX( epsi20, a_i_1d(ji) + zda_mel ) |
---|
| 329 | ! adjust thickness |
---|
| 330 | ht_i_1d(ji) = zvi / a_i_1d(ji) |
---|
| 331 | ht_s_1d(ji) = zvs / a_i_1d(ji) |
---|
| 332 | ! retrieve total concentration |
---|
| 333 | at_i_1d(ji) = a_i_1d(ji) |
---|
| 334 | END IF |
---|
| 335 | END DO |
---|
| 336 | ! |
---|
| 337 | END SUBROUTINE ice_thd_lam |
---|
| 338 | |
---|
| 339 | |
---|
| 340 | SUBROUTINE ice_thd_1d2d( jl, kn ) |
---|
| 341 | !!----------------------------------------------------------------------- |
---|
| 342 | !! *** ROUTINE ice_thd_1d2d *** |
---|
| 343 | !! |
---|
| 344 | !! ** Purpose : move arrays from 1d to 2d and the reverse |
---|
| 345 | !!----------------------------------------------------------------------- |
---|
| 346 | INTEGER, INTENT(in) :: jl ! ice cat |
---|
| 347 | INTEGER, INTENT(in) :: kn ! 1= from 2D to 1D ; 2= from 1D to 2D |
---|
| 348 | ! |
---|
| 349 | INTEGER :: jk ! dummy loop indices |
---|
| 350 | !!----------------------------------------------------------------------- |
---|
| 351 | ! |
---|
| 352 | SELECT CASE( kn ) |
---|
| 353 | ! |
---|
| 354 | CASE( 1 ) ! from 2D to 1D |
---|
| 355 | ! |
---|
| 356 | CALL tab_2d_1d( nidx, idxice(1:nidx), at_i_1d(1:nidx), at_i ) |
---|
| 357 | CALL tab_2d_1d( nidx, idxice(1:nidx), a_i_1d (1:nidx), a_i(:,:,jl) ) |
---|
| 358 | CALL tab_2d_1d( nidx, idxice(1:nidx), ht_i_1d(1:nidx), ht_i(:,:,jl) ) |
---|
| 359 | CALL tab_2d_1d( nidx, idxice(1:nidx), ht_s_1d(1:nidx), ht_s(:,:,jl) ) |
---|
| 360 | CALL tab_2d_1d( nidx, idxice(1:nidx), t_su_1d(1:nidx), t_su(:,:,jl) ) |
---|
| 361 | CALL tab_2d_1d( nidx, idxice(1:nidx), sm_i_1d(1:nidx), sm_i(:,:,jl) ) |
---|
| 362 | DO jk = 1, nlay_s |
---|
| 363 | CALL tab_2d_1d( nidx, idxice(1:nidx), t_s_1d(1:nidx,jk), t_s(:,:,jk,jl) ) |
---|
| 364 | CALL tab_2d_1d( nidx, idxice(1:nidx), e_s_1d(1:nidx,jk), e_s(:,:,jk,jl) ) |
---|
| 365 | END DO |
---|
| 366 | DO jk = 1, nlay_i |
---|
| 367 | CALL tab_2d_1d( nidx, idxice(1:nidx), t_i_1d(1:nidx,jk), t_i(:,:,jk,jl) ) |
---|
| 368 | CALL tab_2d_1d( nidx, idxice(1:nidx), e_i_1d(1:nidx,jk), e_i(:,:,jk,jl) ) |
---|
| 369 | CALL tab_2d_1d( nidx, idxice(1:nidx), s_i_1d(1:nidx,jk), s_i(:,:,jk,jl) ) |
---|
| 370 | END DO |
---|
| 371 | ! |
---|
| 372 | CALL tab_2d_1d( nidx, idxice(1:nidx), qprec_ice_1d(1:nidx), qprec_ice ) |
---|
| 373 | CALL tab_2d_1d( nidx, idxice(1:nidx), qsr_ice_1d (1:nidx), qsr_ice(:,:,jl) ) |
---|
| 374 | CALL tab_2d_1d( nidx, idxice(1:nidx), fr1_i0_1d (1:nidx), fr1_i0 ) |
---|
| 375 | CALL tab_2d_1d( nidx, idxice(1:nidx), fr2_i0_1d (1:nidx), fr2_i0 ) |
---|
| 376 | CALL tab_2d_1d( nidx, idxice(1:nidx), qns_ice_1d (1:nidx), qns_ice(:,:,jl) ) |
---|
| 377 | CALL tab_2d_1d( nidx, idxice(1:nidx), ftr_ice_1d (1:nidx), ftr_ice(:,:,jl) ) |
---|
| 378 | CALL tab_2d_1d( nidx, idxice(1:nidx), evap_ice_1d (1:nidx), evap_ice(:,:,jl) ) |
---|
| 379 | CALL tab_2d_1d( nidx, idxice(1:nidx), dqns_ice_1d (1:nidx), dqns_ice(:,:,jl) ) |
---|
| 380 | CALL tab_2d_1d( nidx, idxice(1:nidx), t_bo_1d (1:nidx), t_bo ) |
---|
| 381 | CALL tab_2d_1d( nidx, idxice(1:nidx), sprecip_1d (1:nidx), sprecip ) |
---|
| 382 | CALL tab_2d_1d( nidx, idxice(1:nidx), fhtur_1d (1:nidx), fhtur ) |
---|
| 383 | CALL tab_2d_1d( nidx, idxice(1:nidx), fhld_1d (1:nidx), fhld ) |
---|
| 384 | ! |
---|
| 385 | CALL tab_2d_1d( nidx, idxice(1:nidx), wfx_snw_sni_1d(1:nidx), wfx_snw_sni ) |
---|
| 386 | CALL tab_2d_1d( nidx, idxice(1:nidx), wfx_snw_sum_1d(1:nidx), wfx_snw_sum ) |
---|
| 387 | CALL tab_2d_1d( nidx, idxice(1:nidx), wfx_sub_1d (1:nidx), wfx_sub ) |
---|
| 388 | CALL tab_2d_1d( nidx, idxice(1:nidx), wfx_snw_sub_1d(1:nidx), wfx_snw_sub ) |
---|
| 389 | CALL tab_2d_1d( nidx, idxice(1:nidx), wfx_ice_sub_1d(1:nidx), wfx_ice_sub ) |
---|
| 390 | CALL tab_2d_1d( nidx, idxice(1:nidx), wfx_err_sub_1d(1:nidx), wfx_err_sub ) |
---|
| 391 | ! |
---|
| 392 | CALL tab_2d_1d( nidx, idxice(1:nidx), wfx_bog_1d (1:nidx), wfx_bog ) |
---|
| 393 | CALL tab_2d_1d( nidx, idxice(1:nidx), wfx_bom_1d (1:nidx), wfx_bom ) |
---|
| 394 | CALL tab_2d_1d( nidx, idxice(1:nidx), wfx_sum_1d (1:nidx), wfx_sum ) |
---|
| 395 | CALL tab_2d_1d( nidx, idxice(1:nidx), wfx_sni_1d (1:nidx), wfx_sni ) |
---|
| 396 | CALL tab_2d_1d( nidx, idxice(1:nidx), wfx_res_1d (1:nidx), wfx_res ) |
---|
| 397 | CALL tab_2d_1d( nidx, idxice(1:nidx), wfx_spr_1d (1:nidx), wfx_spr ) |
---|
| 398 | CALL tab_2d_1d( nidx, idxice(1:nidx), wfx_lam_1d (1:nidx), wfx_lam ) |
---|
| 399 | ! |
---|
| 400 | CALL tab_2d_1d( nidx, idxice(1:nidx), sfx_bog_1d (1:nidx), sfx_bog ) |
---|
| 401 | CALL tab_2d_1d( nidx, idxice(1:nidx), sfx_bom_1d (1:nidx), sfx_bom ) |
---|
| 402 | CALL tab_2d_1d( nidx, idxice(1:nidx), sfx_sum_1d (1:nidx), sfx_sum ) |
---|
| 403 | CALL tab_2d_1d( nidx, idxice(1:nidx), sfx_sni_1d (1:nidx), sfx_sni ) |
---|
| 404 | CALL tab_2d_1d( nidx, idxice(1:nidx), sfx_bri_1d (1:nidx), sfx_bri ) |
---|
| 405 | CALL tab_2d_1d( nidx, idxice(1:nidx), sfx_res_1d (1:nidx), sfx_res ) |
---|
| 406 | CALL tab_2d_1d( nidx, idxice(1:nidx), sfx_sub_1d (1:nidx), sfx_sub ) |
---|
| 407 | CALL tab_2d_1d( nidx, idxice(1:nidx), sfx_lam_1d (1:nidx), sfx_lam ) |
---|
| 408 | ! |
---|
| 409 | CALL tab_2d_1d( nidx, idxice(1:nidx), hfx_thd_1d (1:nidx), hfx_thd ) |
---|
| 410 | CALL tab_2d_1d( nidx, idxice(1:nidx), hfx_spr_1d (1:nidx), hfx_spr ) |
---|
| 411 | CALL tab_2d_1d( nidx, idxice(1:nidx), hfx_sum_1d (1:nidx), hfx_sum ) |
---|
| 412 | CALL tab_2d_1d( nidx, idxice(1:nidx), hfx_bom_1d (1:nidx), hfx_bom ) |
---|
| 413 | CALL tab_2d_1d( nidx, idxice(1:nidx), hfx_bog_1d (1:nidx), hfx_bog ) |
---|
| 414 | CALL tab_2d_1d( nidx, idxice(1:nidx), hfx_dif_1d (1:nidx), hfx_dif ) |
---|
| 415 | CALL tab_2d_1d( nidx, idxice(1:nidx), hfx_opw_1d (1:nidx), hfx_opw ) |
---|
| 416 | CALL tab_2d_1d( nidx, idxice(1:nidx), hfx_snw_1d (1:nidx), hfx_snw ) |
---|
| 417 | CALL tab_2d_1d( nidx, idxice(1:nidx), hfx_sub_1d (1:nidx), hfx_sub ) |
---|
| 418 | CALL tab_2d_1d( nidx, idxice(1:nidx), hfx_err_1d (1:nidx), hfx_err ) |
---|
| 419 | CALL tab_2d_1d( nidx, idxice(1:nidx), hfx_res_1d (1:nidx), hfx_res ) |
---|
| 420 | CALL tab_2d_1d( nidx, idxice(1:nidx), hfx_err_dif_1d(1:nidx), hfx_err_dif ) |
---|
| 421 | CALL tab_2d_1d( nidx, idxice(1:nidx), hfx_err_rem_1d(1:nidx), hfx_err_rem ) |
---|
| 422 | CALL tab_2d_1d( nidx, idxice(1:nidx), hfx_out_1d (1:nidx), hfx_out ) |
---|
| 423 | ! |
---|
| 424 | ! SIMIP diagnostics |
---|
| 425 | CALL tab_2d_1d( nidx, idxice(1:nidx), diag_fc_bo_1d(1:nidx), diag_fc_bo ) |
---|
| 426 | CALL tab_2d_1d( nidx, idxice(1:nidx), diag_fc_su_1d(1:nidx), diag_fc_su ) |
---|
| 427 | ! ocean surface fields |
---|
| 428 | CALL tab_2d_1d( nidx, idxice(1:nidx), sst_1d(1:nidx), sst_m ) |
---|
| 429 | CALL tab_2d_1d( nidx, idxice(1:nidx), sss_1d(1:nidx), sss_m ) |
---|
| 430 | |
---|
| 431 | ! --- Change units of e_i, e_s from J/m2 to J/m3 --- ! |
---|
| 432 | DO jk = 1, nlay_i |
---|
| 433 | WHERE( ht_i_1d(1:nidx)>0._wp ) e_i_1d(1:nidx,jk) = e_i_1d(1:nidx,jk) / (ht_i_1d(1:nidx) * a_i_1d(1:nidx)) * nlay_i |
---|
| 434 | ENDDO |
---|
| 435 | DO jk = 1, nlay_s |
---|
| 436 | WHERE( ht_s_1d(1:nidx)>0._wp ) e_s_1d(1:nidx,jk) = e_s_1d(1:nidx,jk) / (ht_s_1d(1:nidx) * a_i_1d(1:nidx)) * nlay_s |
---|
| 437 | ENDDO |
---|
| 438 | ! |
---|
| 439 | CASE( 2 ) ! from 1D to 2D |
---|
| 440 | ! |
---|
| 441 | ! --- Change units of e_i, e_s from J/m3 to J/m2 --- ! |
---|
| 442 | DO jk = 1, nlay_i |
---|
| 443 | e_i_1d(1:nidx,jk) = e_i_1d(1:nidx,jk) * ht_i_1d(1:nidx) * a_i_1d(1:nidx) * r1_nlay_i |
---|
| 444 | ENDDO |
---|
| 445 | DO jk = 1, nlay_s |
---|
| 446 | e_s_1d(1:nidx,jk) = e_s_1d(1:nidx,jk) * ht_s_1d(1:nidx) * a_i_1d(1:nidx) * r1_nlay_s |
---|
| 447 | ENDDO |
---|
| 448 | ! |
---|
| 449 | ! Change thickness to volume |
---|
| 450 | v_i_1d(1:nidx) = ht_i_1d(1:nidx) * a_i_1d(1:nidx) |
---|
| 451 | v_s_1d(1:nidx) = ht_s_1d(1:nidx) * a_i_1d(1:nidx) |
---|
| 452 | smv_i_1d(1:nidx) = sm_i_1d(1:nidx) * v_i_1d(1:nidx) |
---|
| 453 | |
---|
| 454 | CALL tab_1d_2d( nidx, idxice(1:nidx), at_i_1d(1:nidx), at_i ) |
---|
| 455 | CALL tab_1d_2d( nidx, idxice(1:nidx), a_i_1d (1:nidx), a_i(:,:,jl) ) |
---|
| 456 | CALL tab_1d_2d( nidx, idxice(1:nidx), ht_i_1d(1:nidx), ht_i(:,:,jl) ) |
---|
| 457 | CALL tab_1d_2d( nidx, idxice(1:nidx), ht_s_1d(1:nidx), ht_s(:,:,jl) ) |
---|
| 458 | CALL tab_1d_2d( nidx, idxice(1:nidx), t_su_1d(1:nidx), t_su(:,:,jl) ) |
---|
| 459 | CALL tab_1d_2d( nidx, idxice(1:nidx), sm_i_1d(1:nidx), sm_i(:,:,jl) ) |
---|
| 460 | DO jk = 1, nlay_s |
---|
| 461 | CALL tab_1d_2d( nidx, idxice(1:nidx), t_s_1d(1:nidx,jk), t_s(:,:,jk,jl) ) |
---|
| 462 | CALL tab_1d_2d( nidx, idxice(1:nidx), e_s_1d(1:nidx,jk), e_s(:,:,jk,jl) ) |
---|
| 463 | END DO |
---|
| 464 | DO jk = 1, nlay_i |
---|
| 465 | CALL tab_1d_2d( nidx, idxice(1:nidx), t_i_1d(1:nidx,jk), t_i(:,:,jk,jl) ) |
---|
| 466 | CALL tab_1d_2d( nidx, idxice(1:nidx), e_i_1d(1:nidx,jk), e_i(:,:,jk,jl) ) |
---|
| 467 | CALL tab_1d_2d( nidx, idxice(1:nidx), s_i_1d(1:nidx,jk), s_i(:,:,jk,jl) ) |
---|
| 468 | END DO |
---|
| 469 | ! |
---|
| 470 | CALL tab_1d_2d( nidx, idxice(1:nidx), wfx_snw_sni_1d(1:nidx), wfx_snw_sni ) |
---|
| 471 | CALL tab_1d_2d( nidx, idxice(1:nidx), wfx_snw_sum_1d(1:nidx), wfx_snw_sum ) |
---|
| 472 | CALL tab_1d_2d( nidx, idxice(1:nidx), wfx_sub_1d (1:nidx), wfx_sub ) |
---|
| 473 | CALL tab_1d_2d( nidx, idxice(1:nidx), wfx_snw_sub_1d(1:nidx), wfx_snw_sub ) |
---|
| 474 | CALL tab_1d_2d( nidx, idxice(1:nidx), wfx_ice_sub_1d(1:nidx), wfx_ice_sub ) |
---|
| 475 | CALL tab_1d_2d( nidx, idxice(1:nidx), wfx_err_sub_1d(1:nidx), wfx_err_sub ) |
---|
| 476 | ! |
---|
| 477 | CALL tab_1d_2d( nidx, idxice(1:nidx), wfx_bog_1d (1:nidx), wfx_bog ) |
---|
| 478 | CALL tab_1d_2d( nidx, idxice(1:nidx), wfx_bom_1d (1:nidx), wfx_bom ) |
---|
| 479 | CALL tab_1d_2d( nidx, idxice(1:nidx), wfx_sum_1d (1:nidx), wfx_sum ) |
---|
| 480 | CALL tab_1d_2d( nidx, idxice(1:nidx), wfx_sni_1d (1:nidx), wfx_sni ) |
---|
| 481 | CALL tab_1d_2d( nidx, idxice(1:nidx), wfx_res_1d (1:nidx), wfx_res ) |
---|
| 482 | CALL tab_1d_2d( nidx, idxice(1:nidx), wfx_spr_1d (1:nidx), wfx_spr ) |
---|
| 483 | CALL tab_1d_2d( nidx, idxice(1:nidx), wfx_lam_1d (1:nidx), wfx_lam ) |
---|
| 484 | ! |
---|
| 485 | CALL tab_1d_2d( nidx, idxice(1:nidx), sfx_bog_1d (1:nidx), sfx_bog ) |
---|
| 486 | CALL tab_1d_2d( nidx, idxice(1:nidx), sfx_bom_1d (1:nidx), sfx_bom ) |
---|
| 487 | CALL tab_1d_2d( nidx, idxice(1:nidx), sfx_sum_1d (1:nidx), sfx_sum ) |
---|
| 488 | CALL tab_1d_2d( nidx, idxice(1:nidx), sfx_sni_1d (1:nidx), sfx_sni ) |
---|
| 489 | CALL tab_1d_2d( nidx, idxice(1:nidx), sfx_bri_1d (1:nidx), sfx_bri ) |
---|
| 490 | CALL tab_1d_2d( nidx, idxice(1:nidx), sfx_res_1d (1:nidx), sfx_res ) |
---|
| 491 | CALL tab_1d_2d( nidx, idxice(1:nidx), sfx_sub_1d (1:nidx), sfx_sub ) |
---|
| 492 | CALL tab_1d_2d( nidx, idxice(1:nidx), sfx_lam_1d (1:nidx), sfx_lam ) |
---|
| 493 | ! |
---|
| 494 | CALL tab_1d_2d( nidx, idxice(1:nidx), hfx_thd_1d (1:nidx), hfx_thd ) |
---|
| 495 | CALL tab_1d_2d( nidx, idxice(1:nidx), hfx_spr_1d (1:nidx), hfx_spr ) |
---|
| 496 | CALL tab_1d_2d( nidx, idxice(1:nidx), hfx_sum_1d (1:nidx), hfx_sum ) |
---|
| 497 | CALL tab_1d_2d( nidx, idxice(1:nidx), hfx_bom_1d (1:nidx), hfx_bom ) |
---|
| 498 | CALL tab_1d_2d( nidx, idxice(1:nidx), hfx_bog_1d (1:nidx), hfx_bog ) |
---|
| 499 | CALL tab_1d_2d( nidx, idxice(1:nidx), hfx_dif_1d (1:nidx), hfx_dif ) |
---|
| 500 | CALL tab_1d_2d( nidx, idxice(1:nidx), hfx_opw_1d (1:nidx), hfx_opw ) |
---|
| 501 | CALL tab_1d_2d( nidx, idxice(1:nidx), hfx_snw_1d (1:nidx), hfx_snw ) |
---|
| 502 | CALL tab_1d_2d( nidx, idxice(1:nidx), hfx_sub_1d (1:nidx), hfx_sub ) |
---|
| 503 | CALL tab_1d_2d( nidx, idxice(1:nidx), hfx_err_1d (1:nidx), hfx_err ) |
---|
| 504 | CALL tab_1d_2d( nidx, idxice(1:nidx), hfx_res_1d (1:nidx), hfx_res ) |
---|
| 505 | CALL tab_1d_2d( nidx, idxice(1:nidx), hfx_err_dif_1d(1:nidx), hfx_err_dif ) |
---|
| 506 | CALL tab_1d_2d( nidx, idxice(1:nidx), hfx_err_rem_1d(1:nidx), hfx_err_rem ) |
---|
| 507 | CALL tab_1d_2d( nidx, idxice(1:nidx), hfx_out_1d (1:nidx), hfx_out ) |
---|
| 508 | ! |
---|
| 509 | CALL tab_1d_2d( nidx, idxice(1:nidx), qns_ice_1d (1:nidx), qns_ice(:,:,jl) ) |
---|
| 510 | CALL tab_1d_2d( nidx, idxice(1:nidx), ftr_ice_1d (1:nidx), ftr_ice(:,:,jl) ) |
---|
| 511 | ! |
---|
| 512 | ! SIMIP diagnostics |
---|
| 513 | CALL tab_1d_2d( nidx, idxice(1:nidx), t_si_1d (1:nidx), t_si(:,:,jl) ) |
---|
| 514 | CALL tab_1d_2d( nidx, idxice(1:nidx), diag_fc_bo_1d(1:nidx), diag_fc_bo ) |
---|
| 515 | CALL tab_1d_2d( nidx, idxice(1:nidx), diag_fc_su_1d(1:nidx), diag_fc_su ) |
---|
| 516 | ! extensive variables |
---|
| 517 | CALL tab_1d_2d( nidx, idxice(1:nidx), v_i_1d (1:nidx), v_i (:,:,jl) ) |
---|
| 518 | CALL tab_1d_2d( nidx, idxice(1:nidx), v_s_1d (1:nidx), v_s (:,:,jl) ) |
---|
| 519 | CALL tab_1d_2d( nidx, idxice(1:nidx), smv_i_1d(1:nidx), smv_i(:,:,jl) ) |
---|
| 520 | END SELECT |
---|
| 521 | ! |
---|
| 522 | END SUBROUTINE ice_thd_1d2d |
---|
| 523 | |
---|
| 524 | |
---|
| 525 | SUBROUTINE ice_thd_init |
---|
| 526 | !!----------------------------------------------------------------------- |
---|
| 527 | !! *** ROUTINE ice_thd_init *** |
---|
| 528 | !! |
---|
| 529 | !! ** Purpose : Physical constants and parameters linked to the ice |
---|
| 530 | !! thermodynamics |
---|
| 531 | !! |
---|
| 532 | !! ** Method : Read the namicethd namelist and check the ice-thermo |
---|
| 533 | !! parameter values called at the first timestep (nit000) |
---|
| 534 | !! |
---|
| 535 | !! ** input : Namelist namicether |
---|
| 536 | !!------------------------------------------------------------------- |
---|
| 537 | INTEGER :: ios ! Local integer output status for namelist read |
---|
| 538 | NAMELIST/namicethd/ rn_kappa_i, nn_ice_thcon, ln_dqnsice, rn_cdsn, & |
---|
| 539 | & ln_limdH, rn_betas, & |
---|
| 540 | & ln_limdA, rn_beta, rn_dmin, & |
---|
| 541 | & ln_limdO, rn_hnewice, ln_frazil, rn_maxfrazb, rn_vfrazb, rn_Cfrazb, rn_himin, & |
---|
| 542 | & nn_limflx |
---|
| 543 | !!------------------------------------------------------------------- |
---|
| 544 | ! |
---|
| 545 | REWIND( numnam_ice_ref ) ! Namelist namicethd in reference namelist : Ice thermodynamics |
---|
| 546 | READ ( numnam_ice_ref, namicethd, IOSTAT = ios, ERR = 901) |
---|
| 547 | 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namicethd in reference namelist', lwp ) |
---|
| 548 | |
---|
| 549 | REWIND( numnam_ice_cfg ) ! Namelist namicethd in configuration namelist : Ice thermodynamics |
---|
| 550 | READ ( numnam_ice_cfg, namicethd, IOSTAT = ios, ERR = 902 ) |
---|
| 551 | 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namicethd in configuration namelist', lwp ) |
---|
| 552 | IF(lwm) WRITE ( numoni, namicethd ) |
---|
| 553 | ! |
---|
| 554 | ! |
---|
| 555 | IF(lwp) THEN ! control print |
---|
| 556 | WRITE(numout,*) 'ice_thd_init : Ice Thermodynamics' |
---|
| 557 | WRITE(numout,*) '~~~~~~~~~~~~~' |
---|
| 558 | WRITE(numout,*)' -- icethd_dif --' |
---|
| 559 | WRITE(numout,*)' extinction radiation parameter in sea ice rn_kappa_i = ', rn_kappa_i |
---|
| 560 | WRITE(numout,*)' switch for comp. of thermal conductivity in the ice nn_ice_thcon = ', nn_ice_thcon |
---|
| 561 | WRITE(numout,*)' change the surface non-solar flux with Tsu or not ln_dqnsice = ', ln_dqnsice |
---|
| 562 | WRITE(numout,*)' thermal conductivity of the snow rn_cdsn = ', rn_cdsn |
---|
| 563 | WRITE(numout,*)' -- icethd_dh --' |
---|
| 564 | WRITE(numout,*)' activate ice thick change from top/bot (T) or not (F) ln_limdH = ', ln_limdH |
---|
| 565 | WRITE(numout,*)' coefficient for ice-lead partition of snowfall rn_betas = ', rn_betas |
---|
| 566 | WRITE(numout,*)' -- icethd_da --' |
---|
| 567 | WRITE(numout,*)' activate lateral melting (T) or not (F) ln_limdA = ', ln_limdA |
---|
| 568 | WRITE(numout,*)' Coef. beta for lateral melting param. rn_beta = ', rn_beta |
---|
| 569 | WRITE(numout,*)' Minimum floe diameter for lateral melting param. rn_dmin = ', rn_dmin |
---|
| 570 | WRITE(numout,*)' -- icethd_lac --' |
---|
| 571 | WRITE(numout,*)' activate ice growth in open-water (T) or not (F) ln_limdO = ', ln_limdO |
---|
| 572 | WRITE(numout,*)' ice thick. for lateral accretion rn_hnewice = ', rn_hnewice |
---|
| 573 | WRITE(numout,*)' Frazil ice thickness as a function of wind or not ln_frazil = ', ln_frazil |
---|
| 574 | WRITE(numout,*)' Maximum proportion of frazil ice collecting at bottom rn_maxfrazb = ', rn_maxfrazb |
---|
| 575 | WRITE(numout,*)' Thresold relative drift speed for collection of frazil rn_vfrazb = ', rn_vfrazb |
---|
| 576 | WRITE(numout,*)' Squeezing coefficient for collection of frazil rn_Cfrazb = ', rn_Cfrazb |
---|
| 577 | WRITE(numout,*)' -- iceitd --' |
---|
| 578 | WRITE(numout,*)' minimum ice thickness rn_himin = ', rn_himin |
---|
| 579 | WRITE(numout,*)' -- icestp --' |
---|
| 580 | WRITE(numout,*)' Multicategory heat flux formulation nn_limflx = ', nn_limflx |
---|
| 581 | ENDIF |
---|
| 582 | ! |
---|
| 583 | IF ( rn_hnewice < rn_himin ) CALL ctl_stop( 'STOP', 'ice_thd_init : rn_hnewice should be >= rn_himin' ) |
---|
| 584 | ! |
---|
| 585 | IF(lwp) WRITE(numout,*) |
---|
| 586 | SELECT CASE( nn_limflx ) ! LIM3 Multi-category heat flux formulation |
---|
| 587 | CASE ( -1 ) |
---|
| 588 | IF(lwp) WRITE(numout,*) ' LIM3: use per-category fluxes (nn_limflx = -1) ' |
---|
| 589 | IF( ln_cpl ) CALL ctl_stop( 'sbc_init : the chosen nn_limflx for LIM3 in coupled mode must be 0 or 2' ) |
---|
| 590 | CASE ( 0 ) |
---|
| 591 | IF(lwp) WRITE(numout,*) ' LIM3: use average per-category fluxes (nn_limflx = 0) ' |
---|
| 592 | CASE ( 1 ) |
---|
| 593 | IF(lwp) WRITE(numout,*) ' LIM3: use average then redistribute per-category fluxes (nn_limflx = 1) ' |
---|
| 594 | IF( ln_cpl ) CALL ctl_stop( 'sbc_init : the chosen nn_limflx for LIM3 in coupled mode must be 0 or 2' ) |
---|
| 595 | CASE ( 2 ) |
---|
| 596 | IF(lwp) WRITE(numout,*) ' LIM3: Redistribute a single flux over categories (nn_limflx = 2) ' |
---|
| 597 | IF( .NOT. ln_cpl ) CALL ctl_stop( 'sbc_init : the chosen nn_limflx for LIM3 in forced mode cannot be 2' ) |
---|
| 598 | CASE DEFAULT |
---|
| 599 | CALL ctl_stop( 'sbcmod: LIM3 option, nn_limflx, should be between -1 and 2' ) |
---|
| 600 | END SELECT |
---|
| 601 | ! |
---|
| 602 | END SUBROUTINE ice_thd_init |
---|
| 603 | |
---|
| 604 | #else |
---|
| 605 | !!---------------------------------------------------------------------- |
---|
| 606 | !! Default option Dummy module NO LIM3 sea-ice model |
---|
| 607 | !!---------------------------------------------------------------------- |
---|
| 608 | #endif |
---|
| 609 | |
---|
| 610 | !!====================================================================== |
---|
| 611 | END MODULE icethd |
---|