[888] | 1 | MODULE limsbc |
---|
| 2 | !!====================================================================== |
---|
| 3 | !! *** MODULE limsbc *** |
---|
| 4 | !! computation of the flux at the sea ice/ocean interface |
---|
| 5 | !!====================================================================== |
---|
[2528] | 6 | !! History : - ! 2006-07 (M. Vancoppelle) LIM3 original code |
---|
| 7 | !! 3.0 ! 2008-03 (C. Tallandier) surface module |
---|
| 8 | !! - ! 2008-04 (C. Tallandier) split in 2 + new ice-ocean coupling |
---|
| 9 | !! 3.3 ! 2010-05 (G. Madec) decrease ocean & ice reference salinities in the Baltic sea |
---|
| 10 | !! ! + simplification of the ice-ocean stress calculation |
---|
[3962] | 11 | !! 3.4 ! 2011-02 (G. Madec) dynamical allocation |
---|
[3938] | 12 | !! - ! 2012 (D. Iovino) salt flux change |
---|
| 13 | !! - ! 2012-05 (C. Rousset) add penetration solar flux |
---|
[3962] | 14 | !! 3.5 ! 2012-10 (A. Coward, G. Madec) salt fluxes ; ice+snow mass |
---|
[888] | 15 | !!---------------------------------------------------------------------- |
---|
| 16 | #if defined key_lim3 |
---|
| 17 | !!---------------------------------------------------------------------- |
---|
| 18 | !! 'key_lim3' LIM 3.0 sea-ice model |
---|
| 19 | !!---------------------------------------------------------------------- |
---|
[2715] | 20 | !! lim_sbc_alloc : allocate the limsbc arrays |
---|
| 21 | !! lim_sbc_init : initialisation |
---|
| 22 | !! lim_sbc_flx : updates mass, heat and salt fluxes at the ocean surface |
---|
| 23 | !! lim_sbc_tau : update i- and j-stresses, and its modulus at the ocean surface |
---|
[888] | 24 | !!---------------------------------------------------------------------- |
---|
| 25 | USE par_oce ! ocean parameters |
---|
| 26 | USE par_ice ! ice parameters |
---|
| 27 | USE dom_oce ! ocean domain |
---|
| 28 | USE sbc_ice ! Surface boundary condition: sea-ice fields |
---|
| 29 | USE sbc_oce ! Surface boundary condition: ocean fields |
---|
| 30 | USE phycst ! physical constants |
---|
[2528] | 31 | USE albedo ! albedo parameters |
---|
[888] | 32 | USE ice ! LIM sea-ice variables |
---|
| 33 | USE lbclnk ! ocean lateral boundary condition |
---|
| 34 | USE in_out_manager ! I/O manager |
---|
[2715] | 35 | USE lib_mpp ! MPP library |
---|
[3294] | 36 | USE wrk_nemo ! work arrays |
---|
[888] | 37 | USE prtctl ! Print control |
---|
[2715] | 38 | USE cpl_oasis3, ONLY : lk_cpl |
---|
[3938] | 39 | USE traqsr ! clem: add penetration of solar flux into the calculation of heat budget |
---|
[3962] | 40 | USE oce, ONLY : sshn, sshb, snwice_mass, snwice_mass_b, snwice_fmass, sshu_b, sshv_b, sshu_n, sshv_n, sshf_n |
---|
| 41 | USE dom_ice, ONLY : tms |
---|
| 42 | USE lib_fortran ! Fortran utilities (allows no signed zero when 'key_nosignedzero' defined) |
---|
[888] | 43 | |
---|
| 44 | IMPLICIT NONE |
---|
| 45 | PRIVATE |
---|
| 46 | |
---|
[2715] | 47 | PUBLIC lim_sbc_init ! called by ice_init |
---|
| 48 | PUBLIC lim_sbc_flx ! called by sbc_ice_lim |
---|
| 49 | PUBLIC lim_sbc_tau ! called by sbc_ice_lim |
---|
[888] | 50 | |
---|
[2528] | 51 | REAL(wp) :: r1_rdtice ! = 1. / rdt_ice |
---|
| 52 | REAL(wp) :: epsi16 = 1.e-16_wp ! constant values |
---|
[3938] | 53 | REAL(wp) :: epsi20 = 1.e-20_wp ! constant values |
---|
[2528] | 54 | REAL(wp) :: rzero = 0._wp |
---|
| 55 | REAL(wp) :: rone = 1._wp |
---|
[888] | 56 | |
---|
[2715] | 57 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) :: utau_oce, vtau_oce ! air-ocean surface i- & j-stress [N/m2] |
---|
| 58 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) :: tmod_io ! modulus of the ice-ocean velocity [m/s] |
---|
| 59 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) :: soce_0 , sice_0 ! cst SSS and ice salinity (levitating sea-ice) |
---|
[1526] | 60 | |
---|
[888] | 61 | !! * Substitutions |
---|
| 62 | # include "vectopt_loop_substitute.h90" |
---|
| 63 | !!---------------------------------------------------------------------- |
---|
[2715] | 64 | !! NEMO/LIM3 4.0 , UCL - NEMO Consortium (2011) |
---|
[1146] | 65 | !! $Id$ |
---|
[2528] | 66 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
[888] | 67 | !!---------------------------------------------------------------------- |
---|
| 68 | CONTAINS |
---|
| 69 | |
---|
[2715] | 70 | INTEGER FUNCTION lim_sbc_alloc() |
---|
| 71 | !!------------------------------------------------------------------- |
---|
| 72 | !! *** ROUTINE lim_sbc_alloc *** |
---|
| 73 | !!------------------------------------------------------------------- |
---|
| 74 | ALLOCATE( soce_0(jpi,jpj) , utau_oce(jpi,jpj) , & |
---|
| 75 | & sice_0(jpi,jpj) , vtau_oce(jpi,jpj) , tmod_io(jpi,jpj), STAT=lim_sbc_alloc) |
---|
| 76 | ! |
---|
| 77 | IF( lk_mpp ) CALL mpp_sum( lim_sbc_alloc ) |
---|
| 78 | IF( lim_sbc_alloc /= 0 ) CALL ctl_warn('lim_sbc_alloc: failed to allocate arrays') |
---|
| 79 | END FUNCTION lim_sbc_alloc |
---|
| 80 | |
---|
| 81 | |
---|
[918] | 82 | SUBROUTINE lim_sbc_flx( kt ) |
---|
| 83 | !!------------------------------------------------------------------- |
---|
| 84 | !! *** ROUTINE lim_sbc_flx *** |
---|
| 85 | !! |
---|
| 86 | !! ** Purpose : Update the surface ocean boundary condition for heat |
---|
| 87 | !! salt and mass over areas where sea-ice is non-zero |
---|
| 88 | !! |
---|
| 89 | !! ** Action : - computes the heat and freshwater/salt fluxes |
---|
| 90 | !! at the ice-ocean interface. |
---|
| 91 | !! - Update the ocean sbc |
---|
| 92 | !! |
---|
[1037] | 93 | !! ** Outputs : - qsr : sea heat flux: solar |
---|
| 94 | !! - qns : sea heat flux: non solar |
---|
| 95 | !! - emp : freshwater budget: volume flux |
---|
| 96 | !! - emps : freshwater budget: concentration/dillution |
---|
| 97 | !! - fr_i : ice fraction |
---|
| 98 | !! - tn_ice : sea-ice surface temperature |
---|
| 99 | !! - alb_ice : sea-ice alberdo (lk_cpl=T) |
---|
[888] | 100 | !! |
---|
| 101 | !! References : Goosse, H. et al. 1996, Bul. Soc. Roy. Sc. Liege, 65, 87-90. |
---|
| 102 | !! Tartinville et al. 2001 Ocean Modelling, 3, 95-108. |
---|
| 103 | !!--------------------------------------------------------------------- |
---|
[2528] | 104 | INTEGER, INTENT(in) :: kt ! number of iteration |
---|
[2715] | 105 | ! |
---|
[888] | 106 | INTEGER :: ji, jj ! dummy loop indices |
---|
[2715] | 107 | INTEGER :: ierr ! local integer |
---|
[888] | 108 | INTEGER :: ifvt, i1mfr, idfr ! some switches |
---|
| 109 | INTEGER :: iflt, ial, iadv, ifral, ifrdv |
---|
[3938] | 110 | REAL(wp) :: zinda, zindb, zfons, zpme ! local scalars |
---|
| 111 | REAL(wp) :: zfmm ! IOVINO freezing minus melting (F-M) |
---|
[3294] | 112 | REAL(wp), POINTER, DIMENSION(:,:) :: zfcm1 , zfcm2 ! solar/non solar heat fluxes |
---|
[2715] | 113 | REAL(wp), POINTER, DIMENSION(:,:,:) :: zalb, zalbp ! 2D/3D workspace |
---|
[888] | 114 | !!--------------------------------------------------------------------- |
---|
[3294] | 115 | |
---|
| 116 | CALL wrk_alloc( jpi, jpj, zfcm1 , zfcm2 ) |
---|
| 117 | IF( lk_cpl ) CALL wrk_alloc( jpi, jpj, jpl, zalb, zalbp ) |
---|
[921] | 118 | |
---|
[888] | 119 | !------------------------------------------! |
---|
| 120 | ! heat flux at the ocean surface ! |
---|
| 121 | !------------------------------------------! |
---|
| 122 | ! pfrld is the lead fraction at the previous time step (actually between TRP and THD) |
---|
| 123 | ! changed to old_frld and old ht_i |
---|
[921] | 124 | |
---|
[888] | 125 | DO jj = 1, jpj |
---|
| 126 | DO ji = 1, jpi |
---|
| 127 | zinda = 1.0 - MAX( rzero , SIGN( rone , - ( 1.0 - pfrld(ji,jj) ) ) ) |
---|
[3938] | 128 | zindb = 1.0 - MAX( rzero , SIGN( rone , - iatte(ji,jj) ) ) |
---|
| 129 | ifvt = zinda * MAX( rzero , SIGN( rone, - phicif(ji,jj) ) ) !subscripts are bad here |
---|
| 130 | i1mfr = 1.0 - MAX( rzero , SIGN( rone , - at_i(ji,jj) ) ) |
---|
[888] | 131 | idfr = 1.0 - MAX( rzero , SIGN( rone , ( 1.0 - at_i(ji,jj) ) - pfrld(ji,jj) ) ) |
---|
| 132 | iflt = zinda * (1 - i1mfr) * (1 - ifvt ) |
---|
| 133 | ial = ifvt * i1mfr + ( 1 - ifvt ) * idfr |
---|
| 134 | iadv = ( 1 - i1mfr ) * zinda |
---|
| 135 | ifral = ( 1 - i1mfr * ( 1 - ial ) ) |
---|
| 136 | ifrdv = ( 1 - ifral * ( 1 - ial ) ) * iadv |
---|
| 137 | |
---|
| 138 | ! switch --- 1.0 ---------------- 0.0 -------------------- |
---|
| 139 | ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 140 | ! zinda | if pfrld = 1 | if pfrld < 1 | |
---|
| 141 | ! -> ifvt| if pfrld old_ht_i |
---|
| 142 | ! i1mfr | if frld = 1 | if frld < 1 | |
---|
| 143 | ! idfr | if frld <= pfrld | if frld > pfrld | |
---|
| 144 | ! iflt | |
---|
| 145 | ! ial | |
---|
| 146 | ! iadv | |
---|
| 147 | ! ifral |
---|
| 148 | ! ifrdv |
---|
| 149 | |
---|
| 150 | ! computation the solar flux at ocean surface |
---|
[3938] | 151 | zfcm1(ji,jj) = pfrld(ji,jj) * qsr(ji,jj) + & |
---|
| 152 | & zindb * ( 1. - pfrld(ji,jj) ) * fstric(ji,jj) / MAX( iatte(ji,jj), epsi20 ) |
---|
[921] | 153 | ! fstric Solar flux transmitted trough the ice |
---|
| 154 | ! qsr Net short wave heat flux on free ocean |
---|
| 155 | ! new line |
---|
[3938] | 156 | fscmbq(ji,jj) = zindb * ( 1.0 - pfrld(ji,jj) ) * fstric(ji,jj) / MAX( iatte(ji,jj), epsi20 ) |
---|
[888] | 157 | |
---|
| 158 | ! computation the non solar heat flux at ocean surface |
---|
| 159 | zfcm2(ji,jj) = - zfcm1(ji,jj) & |
---|
| 160 | & + iflt * ( fscmbq(ji,jj) ) & ! total abl -> fscmbq is given to the ocean |
---|
[921] | 161 | ! fscmbq and ffltbif are obsolete |
---|
| 162 | ! & + iflt * ffltbif(ji,jj) !!! only if one category is used |
---|
[2528] | 163 | & + ifral * ( ial * qcmif(ji,jj) + (1 - ial) * qldif(ji,jj) ) * r1_rdtice & |
---|
| 164 | & + ifrdv * ( qfvbq(ji,jj) + qdtcn(ji,jj) ) * r1_rdtice & |
---|
[888] | 165 | & + fhmec(ji,jj) & ! new contribution due to snow melt in ridging!! |
---|
| 166 | & + fheat_rpo(ji,jj) & ! contribution from ridge formation |
---|
| 167 | & + fheat_res(ji,jj) |
---|
[921] | 168 | ! fscmbq Part of the solar radiation transmitted through the ice and going to the ocean |
---|
| 169 | ! computed in limthd_zdf.F90 |
---|
| 170 | ! ffltbif Total heat content of the ice (brine pockets+ice) / delta_t |
---|
| 171 | ! qcmif Energy needed to bring the ocean surface layer until its freezing (ok) |
---|
| 172 | ! qldif heat balance of the lead (or of the open ocean) |
---|
| 173 | ! qfvbq i think this is wrong! |
---|
| 174 | ! ---> Array used to store energy in case of total lateral ablation |
---|
| 175 | ! qfvbq latent heat uptake/release after accretion/ablation |
---|
| 176 | ! qdtcn Energy from the turbulent oceanic heat flux heat flux coming in the lead |
---|
[888] | 177 | |
---|
[3962] | 178 | IF ( num_sal == 2 ) zfcm2(ji,jj) = zfcm2(ji,jj) + fhbri(ji,jj) ! new contribution due to brine drainage |
---|
[888] | 179 | |
---|
| 180 | ! bottom radiative component is sent to the computation of the |
---|
| 181 | ! oceanic heat flux |
---|
| 182 | fsbbq(ji,jj) = ( 1.0 - ( ifvt + iflt ) ) * fscmbq(ji,jj) |
---|
| 183 | |
---|
| 184 | ! used to compute the oceanic heat flux at the next time step |
---|
| 185 | qsr(ji,jj) = zfcm1(ji,jj) ! solar heat flux |
---|
| 186 | qns(ji,jj) = zfcm2(ji,jj) - fdtcn(ji,jj) ! non solar heat flux |
---|
[921] | 187 | ! ! fdtcn : turbulent oceanic heat flux |
---|
[888] | 188 | |
---|
[921] | 189 | !!gm this IF prevents the vertorisation of the whole loop |
---|
[3938] | 190 | ! IF ( ( ji == jiindx ) .AND. ( jj == jjindx) ) THEN |
---|
| 191 | ! WRITE(numout,*) 'lim_sbc : heat fluxes ' |
---|
| 192 | ! WRITE(numout,*) ' at_i : ', at_i(jiindx,jjindx) |
---|
| 193 | ! WRITE(numout,*) ' ht_i : ', SUM( ht_i(jiindx,jjindx,1:jpl) ) |
---|
| 194 | ! WRITE(numout,*) ' ht_s : ', SUM( ht_s(jiindx,jjindx,1:jpl) ) |
---|
| 195 | ! WRITE(numout,*) |
---|
| 196 | ! WRITE(numout,*) ' qsr : ', qsr(jiindx,jjindx) |
---|
| 197 | ! WRITE(numout,*) ' zfcm1 : ', zfcm1(jiindx,jjindx) |
---|
| 198 | ! WRITE(numout,*) ' pfrld : ', pfrld(jiindx,jjindx) |
---|
| 199 | ! WRITE(numout,*) ' fstric : ', fstric (jiindx,jjindx) |
---|
| 200 | ! WRITE(numout,*) |
---|
| 201 | ! WRITE(numout,*) ' qns : ', qns(jiindx,jjindx) |
---|
| 202 | ! WRITE(numout,*) ' zfcm2 : ', zfcm2(jiindx,jjindx) |
---|
| 203 | ! WRITE(numout,*) ' zfcm1 : ', zfcm1(jiindx,jjindx) |
---|
| 204 | ! WRITE(numout,*) ' ifral : ', ifral |
---|
| 205 | ! WRITE(numout,*) ' ial : ', ial |
---|
| 206 | ! WRITE(numout,*) ' qcmif : ', qcmif(jiindx,jjindx) |
---|
| 207 | ! WRITE(numout,*) ' qldif : ', qldif(jiindx,jjindx) |
---|
| 208 | ! !WRITE(numout,*) ' qcmif / dt: ', qcmif(jiindx,jjindx) * r1_rdtice |
---|
| 209 | ! !WRITE(numout,*) ' qldif / dt: ', qldif(jiindx,jjindx) * r1_rdtice |
---|
| 210 | ! WRITE(numout,*) ' ifrdv : ', ifrdv |
---|
| 211 | ! WRITE(numout,*) ' qfvbq : ', qfvbq(jiindx,jjindx) |
---|
| 212 | ! WRITE(numout,*) ' qdtcn : ', qdtcn(jiindx,jjindx) |
---|
| 213 | ! !WRITE(numout,*) ' qfvbq / dt: ', qfvbq(jiindx,jjindx) * r1_rdtice |
---|
| 214 | ! !WRITE(numout,*) ' qdtcn / dt: ', qdtcn(jiindx,jjindx) * r1_rdtice |
---|
| 215 | ! WRITE(numout,*) ' ' |
---|
| 216 | ! WRITE(numout,*) ' fdtcn : ', fdtcn(jiindx,jjindx) |
---|
| 217 | ! WRITE(numout,*) ' fhmec : ', fhmec(jiindx,jjindx) |
---|
| 218 | ! WRITE(numout,*) ' fheat_rpo : ', fheat_rpo(jiindx,jjindx) |
---|
| 219 | ! WRITE(numout,*) ' fhbri : ', fhbri(jiindx,jjindx) |
---|
| 220 | ! WRITE(numout,*) ' fheat_res : ', fheat_res(jiindx,jjindx) |
---|
| 221 | ! ENDIF |
---|
[921] | 222 | !!gm end |
---|
[888] | 223 | END DO |
---|
| 224 | END DO |
---|
[921] | 225 | |
---|
[888] | 226 | !------------------------------------------! |
---|
| 227 | ! mass flux at the ocean surface ! |
---|
| 228 | !------------------------------------------! |
---|
| 229 | |
---|
[1526] | 230 | !!gm optimisation: this loop have to be merged with the previous one |
---|
[888] | 231 | DO jj = 1, jpj |
---|
| 232 | DO ji = 1, jpi |
---|
| 233 | ! case of realistic freshwater flux (Tartinville et al., 2001) (presently ACTIVATED) |
---|
| 234 | ! ------------------------------------------------------------------------------------- |
---|
| 235 | ! The idea of this approach is that the system that we consider is the ICE-OCEAN system |
---|
| 236 | ! Thus FW flux = External ( E-P+snow melt) |
---|
| 237 | ! Salt flux = Exchanges in the ice-ocean system then converted into FW |
---|
| 238 | ! Associated to Ice formation AND Ice melting |
---|
| 239 | ! Even if i see Ice melting as a FW and SALT flux |
---|
| 240 | ! |
---|
| 241 | |
---|
| 242 | ! computing freshwater exchanges at the ice/ocean interface |
---|
[2528] | 243 | zpme = - emp(ji,jj) * ( 1.0 - at_i(ji,jj) ) & ! evaporation over oceanic fraction |
---|
| 244 | & + tprecip(ji,jj) * at_i(ji,jj) & ! all precipitation reach the ocean |
---|
| 245 | & - sprecip(ji,jj) * ( 1. - (pfrld(ji,jj)**betas) ) & ! except solid precip intercepted by sea-ice |
---|
| 246 | & - rdmsnif(ji,jj) * r1_rdtice & ! freshwaterflux due to snow melting |
---|
| 247 | & + fmmec(ji,jj) ! snow falling when ridging |
---|
[921] | 248 | |
---|
[2528] | 249 | |
---|
[888] | 250 | ! computing salt exchanges at the ice/ocean interface |
---|
| 251 | ! sice should be the same as computed with the ice model |
---|
[3938] | 252 | !zfons = ( soce_0(ji,jj) - sice_0(ji,jj) ) * rdmicif(ji,jj) * r1_rdtice |
---|
[921] | 253 | ! SOCE |
---|
[3938] | 254 | !zfons = ( sss_m (ji,jj) - sice_0(ji,jj) ) * rdmicif(ji,jj) * r1_rdtice |
---|
| 255 | zfmm = rdmicif(ji,jj) * r1_rdtice ! IOVINO |
---|
[921] | 256 | !CT useless ! salt flux for constant salinity |
---|
| 257 | !CT useless fsalt(ji,jj) = zfons / ( sss_m(ji,jj) + epsi16 ) + fsalt_res(ji,jj) |
---|
[888] | 258 | ! salt flux for variable salinity |
---|
| 259 | zinda = 1.0 - MAX( rzero , SIGN( rone , - ( 1.0 - pfrld(ji,jj) ) ) ) |
---|
| 260 | ! correcting brine and salt fluxes |
---|
| 261 | fsbri(ji,jj) = zinda*fsbri(ji,jj) |
---|
| 262 | ! converting the salt fluxes from ice to a freshwater flux from ocean |
---|
[3938] | 263 | ! fsalt_res(ji,jj) = fsalt_res(ji,jj) / ( sss_m(ji,jj) + epsi16 ) |
---|
| 264 | ! fseqv(ji,jj) = fseqv(ji,jj) / ( sss_m(ji,jj) + epsi16 ) |
---|
| 265 | ! fsbri(ji,jj) = fsbri(ji,jj) / ( sss_m(ji,jj) + epsi16 ) |
---|
| 266 | ! fsalt_rpo(ji,jj) = fsalt_rpo(ji,jj) / ( sss_m(ji,jj) + epsi16 ) |
---|
[888] | 267 | |
---|
| 268 | ! freshwater mass exchange (positive to the ice, negative for the ocean ?) |
---|
| 269 | ! actually it's a salt flux (so it's minus freshwater flux) |
---|
| 270 | ! if sea ice grows, zfons is positive, fsalt also |
---|
| 271 | ! POSITIVE SALT FLUX FROM THE ICE TO THE OCEAN |
---|
| 272 | ! POSITIVE FRESHWATER FLUX FROM THE OCEAN TO THE ICE [kg.m-2.s-1] |
---|
| 273 | |
---|
[3938] | 274 | emp(ji,jj) = - zpme + zfmm ! volume flux IOVINO |
---|
| 275 | ! emp(ji,jj) = - zpme |
---|
[888] | 276 | END DO |
---|
| 277 | END DO |
---|
| 278 | |
---|
[918] | 279 | IF( num_sal == 2 ) THEN ! variable ice salinity: brine drainage included in the salt flux |
---|
[3938] | 280 | emps(:,:) = fsbri(:,:) + fseqv(:,:) + fsalt_res(:,:) + fsalt_rpo(:,:) ! + emp(:,:) ! IOVINO |
---|
[918] | 281 | ELSE ! constant ice salinity: |
---|
[3938] | 282 | emps(:,:) = fseqv(:,:) + fsalt_res(:,:) + fsalt_rpo(:,:) ! + emp(:,:) ! IOVINO |
---|
[888] | 283 | ENDIF |
---|
[921] | 284 | |
---|
[3962] | 285 | !-----------------------------------------------! |
---|
| 286 | ! mass of snow and ice per unit area ! |
---|
| 287 | !-----------------------------------------------! |
---|
| 288 | IF( nn_ice_embd /= 0 ) THEN ! embedded sea-ice (mass required) |
---|
| 289 | snwice_mass_b(:,:) = snwice_mass(:,:) ! save mass from the previous ice time step |
---|
| 290 | ! ! new mass per unit area |
---|
| 291 | snwice_mass (:,:) = tms(:,:) * ( rhosn * vt_s(:,:) + rhoic * vt_i(:,:) ) |
---|
| 292 | ! ! time evolution of snow+ice mass |
---|
| 293 | snwice_fmass (:,:) = ( snwice_mass(:,:) - snwice_mass_b(:,:) ) * r1_rdtice |
---|
| 294 | ENDIF |
---|
[3938] | 295 | |
---|
[888] | 296 | !-----------------------------------------------! |
---|
| 297 | ! Storing the transmitted variables ! |
---|
| 298 | !-----------------------------------------------! |
---|
[1037] | 299 | fr_i (:,:) = at_i(:,:) ! Sea-ice fraction |
---|
[888] | 300 | tn_ice(:,:,:) = t_su(:,:,:) ! Ice surface temperature |
---|
| 301 | |
---|
| 302 | !------------------------------------------------! |
---|
| 303 | ! Computation of snow/ice and ocean albedo ! |
---|
| 304 | !------------------------------------------------! |
---|
[2715] | 305 | IF( lk_cpl ) THEN ! coupled case |
---|
| 306 | CALL albedo_ice( t_su, ht_i, ht_s, zalbp, zalb ) ! snow/ice albedo |
---|
| 307 | ! |
---|
| 308 | alb_ice(:,:,:) = 0.5_wp * zalbp(:,:,:) + 0.5_wp * zalb (:,:,:) ! Ice albedo (mean clear and overcast skys) |
---|
| 309 | ENDIF |
---|
[888] | 310 | |
---|
| 311 | IF(ln_ctl) THEN |
---|
[918] | 312 | CALL prt_ctl( tab2d_1=qsr , clinfo1=' lim_sbc: qsr : ', tab2d_2=qns , clinfo2=' qns : ' ) |
---|
| 313 | CALL prt_ctl( tab2d_1=emp , clinfo1=' lim_sbc: emp : ', tab2d_2=emps, clinfo2=' emps : ' ) |
---|
[1037] | 314 | CALL prt_ctl( tab2d_1=fr_i , clinfo1=' lim_sbc: fr_i : ' ) |
---|
[918] | 315 | CALL prt_ctl( tab3d_1=tn_ice, clinfo1=' lim_sbc: tn_ice : ', kdim=jpl ) |
---|
[921] | 316 | ENDIF |
---|
[2715] | 317 | ! |
---|
[3294] | 318 | CALL wrk_dealloc( jpi, jpj, zfcm1 , zfcm2 ) |
---|
| 319 | IF( lk_cpl ) CALL wrk_dealloc( jpi, jpj, jpl, zalb, zalbp ) |
---|
[918] | 320 | ! |
---|
| 321 | END SUBROUTINE lim_sbc_flx |
---|
[888] | 322 | |
---|
[2528] | 323 | |
---|
| 324 | SUBROUTINE lim_sbc_tau( kt , pu_oce, pv_oce ) |
---|
| 325 | !!------------------------------------------------------------------- |
---|
| 326 | !! *** ROUTINE lim_sbc_tau *** |
---|
| 327 | !! |
---|
| 328 | !! ** Purpose : Update the ocean surface stresses due to the ice |
---|
| 329 | !! |
---|
| 330 | !! ** Action : * at each ice time step (every nn_fsbc time step): |
---|
| 331 | !! - compute the modulus of ice-ocean relative velocity |
---|
| 332 | !! (*rho*Cd) at T-point (C-grid) or I-point (B-grid) |
---|
| 333 | !! tmod_io = rhoco * | U_ice-U_oce | |
---|
| 334 | !! - update the modulus of stress at ocean surface |
---|
| 335 | !! taum = frld * taum + (1-frld) * tmod_io * | U_ice-U_oce | |
---|
| 336 | !! * at each ocean time step (every kt): |
---|
| 337 | !! compute linearized ice-ocean stresses as |
---|
| 338 | !! Utau = tmod_io * | U_ice - pU_oce | |
---|
| 339 | !! using instantaneous current ocean velocity (usually before) |
---|
| 340 | !! |
---|
| 341 | !! NB: - ice-ocean rotation angle no more allowed |
---|
| 342 | !! - here we make an approximation: taum is only computed every ice time step |
---|
| 343 | !! This avoids mutiple average to pass from T -> U,V grids and next from U,V grids |
---|
| 344 | !! to T grid. taum is used in TKE and GLS, which should not be too sensitive to this approximaton... |
---|
| 345 | !! |
---|
| 346 | !! ** Outputs : - utau, vtau : surface ocean i- and j-stress (u- & v-pts) updated with ice-ocean fluxes |
---|
| 347 | !! - taum : modulus of the surface ocean stress (T-point) updated with ice-ocean fluxes |
---|
| 348 | !!--------------------------------------------------------------------- |
---|
| 349 | INTEGER , INTENT(in) :: kt ! ocean time-step index |
---|
| 350 | REAL(wp), DIMENSION(jpi,jpj), INTENT(in) :: pu_oce, pv_oce ! surface ocean currents |
---|
| 351 | !! |
---|
| 352 | INTEGER :: ji, jj ! dummy loop indices |
---|
| 353 | REAL(wp) :: zat_u, zutau_ice, zu_t, zmodt ! local scalar |
---|
| 354 | REAL(wp) :: zat_v, zvtau_ice, zv_t ! - - |
---|
[2715] | 355 | !!--------------------------------------------------------------------- |
---|
| 356 | ! |
---|
[2528] | 357 | IF( MOD( kt-1, nn_fsbc ) == 0 ) THEN !== Ice time-step only ==! (i.e. surface module time-step) |
---|
| 358 | !CDIR NOVERRCHK |
---|
| 359 | DO jj = 2, jpjm1 !* update the modulus of stress at ocean surface (T-point) |
---|
| 360 | !CDIR NOVERRCHK |
---|
| 361 | DO ji = fs_2, fs_jpim1 |
---|
| 362 | ! ! 2*(U_ice-U_oce) at T-point |
---|
| 363 | zu_t = u_ice(ji,jj) + u_ice(ji-1,jj) - u_oce(ji,jj) - u_oce(ji-1,jj) |
---|
| 364 | zv_t = v_ice(ji,jj) + v_ice(ji,jj-1) - v_oce(ji,jj) - v_oce(ji,jj-1) |
---|
| 365 | ! ! |U_ice-U_oce|^2 |
---|
| 366 | zmodt = 0.25_wp * ( zu_t * zu_t + zv_t * zv_t ) |
---|
| 367 | ! ! update the ocean stress modulus |
---|
| 368 | taum(ji,jj) = ( 1._wp - at_i(ji,jj) ) * taum(ji,jj) + at_i(ji,jj) * rhoco * zmodt |
---|
| 369 | tmod_io(ji,jj) = rhoco * SQRT( zmodt ) ! rhoco * |U_ice-U_oce| at T-point |
---|
| 370 | END DO |
---|
| 371 | END DO |
---|
| 372 | CALL lbc_lnk( taum, 'T', 1. ) ; CALL lbc_lnk( tmod_io, 'T', 1. ) |
---|
| 373 | ! |
---|
| 374 | utau_oce(:,:) = utau(:,:) !* save the air-ocean stresses at ice time-step |
---|
| 375 | vtau_oce(:,:) = vtau(:,:) |
---|
| 376 | ! |
---|
| 377 | ENDIF |
---|
[2715] | 378 | ! |
---|
| 379 | ! !== every ocean time-step ==! |
---|
| 380 | ! |
---|
[2528] | 381 | DO jj = 2, jpjm1 !* update the stress WITHOUT a ice-ocean rotation angle |
---|
| 382 | DO ji = fs_2, fs_jpim1 ! Vect. Opt. |
---|
| 383 | zat_u = ( at_i(ji,jj) + at_i(ji+1,jj) ) * 0.5_wp ! ice area at u and V-points |
---|
| 384 | zat_v = ( at_i(ji,jj) + at_i(ji,jj+1) ) * 0.5_wp |
---|
| 385 | ! ! linearized quadratic drag formulation |
---|
| 386 | zutau_ice = 0.5_wp * ( tmod_io(ji,jj) + tmod_io(ji+1,jj) ) * ( u_ice(ji,jj) - pu_oce(ji,jj) ) |
---|
| 387 | zvtau_ice = 0.5_wp * ( tmod_io(ji,jj) + tmod_io(ji,jj+1) ) * ( v_ice(ji,jj) - pv_oce(ji,jj) ) |
---|
| 388 | ! ! stresses at the ocean surface |
---|
| 389 | utau(ji,jj) = ( 1._wp - zat_u ) * utau_oce(ji,jj) + zat_u * zutau_ice |
---|
| 390 | vtau(ji,jj) = ( 1._wp - zat_v ) * vtau_oce(ji,jj) + zat_v * zvtau_ice |
---|
| 391 | END DO |
---|
| 392 | END DO |
---|
| 393 | CALL lbc_lnk( utau, 'U', -1. ) ; CALL lbc_lnk( vtau, 'V', -1. ) ! lateral boundary condition |
---|
| 394 | ! |
---|
| 395 | IF(ln_ctl) CALL prt_ctl( tab2d_1=utau, clinfo1=' lim_sbc: utau : ', mask1=umask, & |
---|
| 396 | & tab2d_2=vtau, clinfo2=' vtau : ' , mask2=vmask ) |
---|
| 397 | ! |
---|
| 398 | END SUBROUTINE lim_sbc_tau |
---|
| 399 | |
---|
[2715] | 400 | |
---|
| 401 | SUBROUTINE lim_sbc_init |
---|
| 402 | !!------------------------------------------------------------------- |
---|
| 403 | !! *** ROUTINE lim_sbc_init *** |
---|
| 404 | !! |
---|
| 405 | !! ** Purpose : Preparation of the file ice_evolu for the output of |
---|
| 406 | !! the temporal evolution of key variables |
---|
| 407 | !! |
---|
| 408 | !! ** input : Namelist namicedia |
---|
| 409 | !!------------------------------------------------------------------- |
---|
| 410 | ! |
---|
| 411 | IF(lwp) WRITE(numout,*) |
---|
| 412 | IF(lwp) WRITE(numout,*) 'lim_sbc_init : LIM-3 sea-ice - surface boundary condition' |
---|
| 413 | IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~~ ' |
---|
| 414 | |
---|
| 415 | ! ! allocate lim_sbc array |
---|
| 416 | IF( lim_sbc_alloc() /= 0 ) CALL ctl_stop( 'STOP', 'lim_sbc_init : unable to allocate standard arrays' ) |
---|
| 417 | ! |
---|
| 418 | r1_rdtice = 1. / rdt_ice |
---|
| 419 | ! |
---|
| 420 | soce_0(:,:) = soce ! constant SSS and ice salinity used in levitating sea-ice case |
---|
| 421 | sice_0(:,:) = sice |
---|
| 422 | ! |
---|
| 423 | IF( cp_cfg == "orca" ) THEN ! decrease ocean & ice reference salinities in the Baltic sea |
---|
| 424 | WHERE( 14._wp <= glamt(:,:) .AND. glamt(:,:) <= 32._wp .AND. & |
---|
| 425 | & 54._wp <= gphit(:,:) .AND. gphit(:,:) <= 66._wp ) |
---|
| 426 | soce_0(:,:) = 4._wp |
---|
| 427 | sice_0(:,:) = 2._wp |
---|
| 428 | END WHERE |
---|
| 429 | ENDIF |
---|
[3938] | 430 | ! clem modif |
---|
| 431 | iatte(:,:) = 1._wp |
---|
| 432 | oatte(:,:) = 1._wp |
---|
[2715] | 433 | ! |
---|
[3962] | 434 | ! ! sea ice with mass exchange |
---|
| 435 | snwice_mass (:,:) = tms(:,:) * ( rhosn * vt_s(:,:) + rhoic * vt_i(:,:) ) |
---|
| 436 | snwice_mass_b(:,:) = snwice_mass(:,:) |
---|
| 437 | ! |
---|
| 438 | ! |
---|
[2715] | 439 | END SUBROUTINE lim_sbc_init |
---|
| 440 | |
---|
[888] | 441 | #else |
---|
| 442 | !!---------------------------------------------------------------------- |
---|
| 443 | !! Default option : Dummy module NO LIM 3.0 sea-ice model |
---|
| 444 | !!---------------------------------------------------------------------- |
---|
| 445 | CONTAINS |
---|
| 446 | SUBROUTINE lim_sbc ! Dummy routine |
---|
| 447 | END SUBROUTINE lim_sbc |
---|
| 448 | #endif |
---|
| 449 | |
---|
| 450 | !!====================================================================== |
---|
| 451 | END MODULE limsbc |
---|