[888] | 1 | MODULE sbcice_lim_2 |
---|
| 2 | !!====================================================================== |
---|
| 3 | !! *** MODULE sbcice_lim_2 *** |
---|
[2528] | 4 | !! Surface module : update surface ocean boundary condition over ice covered area using LIM sea-ice model |
---|
| 5 | !! Sea-Ice model : LIM-2 Sea ice model time-stepping |
---|
[888] | 6 | !!====================================================================== |
---|
[1218] | 7 | !! History : 1.0 ! 06-2006 (G. Madec) from icestp_2.F90 |
---|
| 8 | !! 3.0 ! 08-2008 (S. Masson, E. .... ) coupled interface |
---|
[2528] | 9 | !! 3.3 ! 05-2009 (G.Garric) addition of the lim2_evp case |
---|
[888] | 10 | !!---------------------------------------------------------------------- |
---|
| 11 | #if defined key_lim2 |
---|
| 12 | !!---------------------------------------------------------------------- |
---|
[2528] | 13 | !! 'key_lim2' : LIM-2 sea-ice model |
---|
[888] | 14 | !!---------------------------------------------------------------------- |
---|
[2528] | 15 | !! sbc_ice_lim_2 : sea-ice model time-stepping and update ocean sbc over ice-covered area |
---|
[888] | 16 | !!---------------------------------------------------------------------- |
---|
[2528] | 17 | USE oce ! ocean dynamics and tracers |
---|
| 18 | USE dom_oce ! ocean space and time domain |
---|
[888] | 19 | USE ice_2 |
---|
[1270] | 20 | USE par_ice_2 |
---|
[888] | 21 | USE iceini_2 |
---|
| 22 | USE dom_ice_2 |
---|
| 23 | |
---|
[2528] | 24 | USE sbc_oce ! Surface boundary condition: ocean fields |
---|
| 25 | USE sbc_ice ! Surface boundary condition: ice fields |
---|
| 26 | USE sbcblk_core ! Surface boundary condition: CORE bulk |
---|
| 27 | USE sbcblk_clio ! Surface boundary condition: CLIO bulk |
---|
| 28 | USE sbccpl ! Surface boundary condition: coupled interface |
---|
[888] | 29 | USE albedo |
---|
| 30 | |
---|
[2528] | 31 | USE phycst ! Define parameters for the routines |
---|
| 32 | USE eosbn2 ! equation of state |
---|
[888] | 33 | USE limdyn_2 |
---|
| 34 | USE limtrp_2 |
---|
| 35 | USE limdmp_2 |
---|
| 36 | USE limthd_2 |
---|
[2528] | 37 | USE limsbc_2 ! sea surface boundary condition |
---|
[888] | 38 | USE limdia_2 |
---|
| 39 | USE limwri_2 |
---|
| 40 | USE limrst_2 |
---|
| 41 | |
---|
[2528] | 42 | USE c1d ! 1D vertical configuration |
---|
[888] | 43 | |
---|
[2528] | 44 | USE lbclnk ! lateral boundary condition - MPP link |
---|
| 45 | USE lib_mpp ! MPP library |
---|
[3294] | 46 | USE wrk_nemo ! work arrays |
---|
[2528] | 47 | USE iom ! I/O manager library |
---|
| 48 | USE in_out_manager ! I/O manager |
---|
| 49 | USE prtctl ! Print control |
---|
| 50 | |
---|
[3680] | 51 | # if defined key_agrif |
---|
| 52 | USE agrif_ice |
---|
| 53 | USE agrif_lim2_update |
---|
| 54 | # endif |
---|
| 55 | |
---|
[888] | 56 | IMPLICIT NONE |
---|
| 57 | PRIVATE |
---|
| 58 | |
---|
| 59 | PUBLIC sbc_ice_lim_2 ! routine called by sbcmod.F90 |
---|
| 60 | |
---|
| 61 | !! * Substitutions |
---|
| 62 | # include "domzgr_substitute.h90" |
---|
| 63 | # include "vectopt_loop_substitute.h90" |
---|
| 64 | !!---------------------------------------------------------------------- |
---|
[2528] | 65 | !! NEMO/OPA 3.3 , NEMO Consortium (2010) |
---|
[1146] | 66 | !! $Id$ |
---|
[2528] | 67 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
[888] | 68 | !!---------------------------------------------------------------------- |
---|
| 69 | CONTAINS |
---|
| 70 | |
---|
[1218] | 71 | SUBROUTINE sbc_ice_lim_2( kt, ksbc ) |
---|
[888] | 72 | !!--------------------------------------------------------------------- |
---|
| 73 | !! *** ROUTINE sbc_ice_lim_2 *** |
---|
| 74 | !! |
---|
| 75 | !! ** Purpose : update the ocean surface boundary condition via the |
---|
| 76 | !! Louvain la Neuve Sea Ice Model time stepping |
---|
| 77 | !! |
---|
| 78 | !! ** Method : ice model time stepping |
---|
| 79 | !! - call the ice dynamics routine |
---|
| 80 | !! - call the ice advection/diffusion routine |
---|
| 81 | !! - call the ice thermodynamics routine |
---|
| 82 | !! - call the routine that computes mass and |
---|
| 83 | !! heat fluxes at the ice/ocean interface |
---|
| 84 | !! - save the outputs |
---|
| 85 | !! - save the outputs for restart when necessary |
---|
| 86 | !! |
---|
| 87 | !! ** Action : - time evolution of the LIM sea-ice model |
---|
| 88 | !! - update all sbc variables below sea-ice: |
---|
[3625] | 89 | !! utau, vtau, taum, wndm, qns , qsr, emp , sfx |
---|
[888] | 90 | !!--------------------------------------------------------------------- |
---|
| 91 | INTEGER, INTENT(in) :: kt ! ocean time step |
---|
[1218] | 92 | INTEGER, INTENT(in) :: ksbc ! type of sbc ( =3 CLIO bulk ; =4 CORE bulk ; =5 coupled ) |
---|
[888] | 93 | !! |
---|
| 94 | INTEGER :: ji, jj ! dummy loop indices |
---|
[2715] | 95 | REAL(wp), DIMENSION(:,:,:), POINTER :: zalb_ice_os ! albedo of the ice under overcast sky |
---|
| 96 | REAL(wp), DIMENSION(:,:,:), POINTER :: zalb_ice_cs ! albedo of ice under clear sky |
---|
| 97 | REAL(wp), DIMENSION(:,:,:), POINTER :: zsist ! surface ice temperature (K) |
---|
[888] | 98 | !!---------------------------------------------------------------------- |
---|
| 99 | |
---|
[3294] | 100 | CALL wrk_alloc( jpi,jpj,1, zalb_ice_os, zalb_ice_cs, zsist ) |
---|
[2715] | 101 | |
---|
[888] | 102 | IF( kt == nit000 ) THEN |
---|
| 103 | IF(lwp) WRITE(numout,*) |
---|
| 104 | IF(lwp) WRITE(numout,*) 'sbc_ice_lim_2 : update ocean surface boudary condition' |
---|
| 105 | IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~~ via Louvain la Neuve Ice Model (LIM) time stepping' |
---|
[2528] | 106 | ! |
---|
[888] | 107 | CALL ice_init_2 |
---|
[3680] | 108 | ! |
---|
| 109 | # if defined key_agrif |
---|
| 110 | IF( .NOT. Agrif_Root() ) CALL Agrif_InitValues_cont_lim2 ! AGRIF: set the meshes |
---|
| 111 | # endif |
---|
[888] | 112 | ENDIF |
---|
| 113 | |
---|
[2528] | 114 | ! !----------------------! |
---|
| 115 | IF( MOD( kt-1, nn_fsbc ) == 0 ) THEN ! Ice time-step only ! |
---|
| 116 | ! !----------------------! |
---|
[3680] | 117 | # if defined key_agrif |
---|
| 118 | IF( .NOT. Agrif_Root() ) lim_nbstep = MOD(lim_nbstep,Agrif_rhot()& |
---|
| 119 | &*Agrif_PArent(nn_fsbc)/REAL(nn_fsbc)) + 1 |
---|
| 120 | # endif |
---|
[2528] | 121 | ! Bulk Formulea ! |
---|
| 122 | !----------------! |
---|
[888] | 123 | ! ... mean surface ocean current at ice dynamics point |
---|
[2528] | 124 | SELECT CASE( cp_ice_msh ) |
---|
| 125 | CASE( 'I' ) !== B-grid ice dynamics : I-point (i.e. F-point with sea-ice indexation) |
---|
| 126 | DO jj = 2, jpj |
---|
| 127 | DO ji = 2, jpi ! NO vector opt. possible |
---|
| 128 | u_oce(ji,jj) = 0.5_wp * ( ssu_m(ji-1,jj ) + ssu_m(ji-1,jj-1) ) * tmu(ji,jj) |
---|
| 129 | v_oce(ji,jj) = 0.5_wp * ( ssv_m(ji ,jj-1) + ssv_m(ji-1,jj-1) ) * tmu(ji,jj) |
---|
| 130 | END DO |
---|
[888] | 131 | END DO |
---|
[2528] | 132 | CALL lbc_lnk( u_oce, 'I', -1. ) ! I-point (i.e. F-point with ice indices) |
---|
| 133 | CALL lbc_lnk( v_oce, 'I', -1. ) ! I-point (i.e. F-point with ice indices) |
---|
| 134 | ! |
---|
| 135 | CASE( 'C' ) !== C-grid ice dynamics : U & V-points (same as ocean) |
---|
| 136 | u_oce(:,:) = ssu_m(:,:) ! mean surface ocean current at ice velocity point |
---|
| 137 | v_oce(:,:) = ssv_m(:,:) |
---|
| 138 | ! |
---|
| 139 | END SELECT |
---|
[888] | 140 | |
---|
| 141 | ! ... masked sea surface freezing temperature [Kelvin] (set to rt0 over land) |
---|
| 142 | tfu(:,:) = tfreez( sss_m ) + rt0 |
---|
| 143 | |
---|
[1109] | 144 | zsist (:,:,1) = sist (:,:) + rt0 * ( 1. - tmask(:,:,1) ) |
---|
[888] | 145 | |
---|
[1218] | 146 | ! ... ice albedo (clear sky and overcast sky) |
---|
[2715] | 147 | CALL albedo_ice( zsist, reshape( hicif, (/jpi,jpj,1/) ), & |
---|
| 148 | reshape( hsnif, (/jpi,jpj,1/) ), & |
---|
| 149 | zalb_ice_cs, zalb_ice_os ) |
---|
[888] | 150 | |
---|
| 151 | ! ... Sea-ice surface boundary conditions output from bulk formulae : |
---|
[1469] | 152 | ! - utau_ice ! surface ice stress i-component (I-point) [N/m2] |
---|
| 153 | ! - vtau_ice ! surface ice stress j-component (I-point) [N/m2] |
---|
[888] | 154 | ! - qns_ice ! non solar heat flux over ice (T-point) [W/m2] |
---|
| 155 | ! - qsr_ice ! solar heat flux over ice (T-point) [W/m2] |
---|
| 156 | ! - qla_ice ! latent heat flux over ice (T-point) [W/m2] |
---|
| 157 | ! - dqns_ice ! non solar heat sensistivity (T-point) [W/m2] |
---|
| 158 | ! - dqla_ice ! latent heat sensistivity (T-point) [W/m2] |
---|
| 159 | ! - tprecip ! total precipitation (T-point) [Kg/m2/s] |
---|
| 160 | ! - sprecip ! solid precipitation (T-point) [Kg/m2/s] |
---|
| 161 | ! - fr1_i0 ! 1sr fraction of qsr penetration in ice [%] |
---|
| 162 | ! - fr2_i0 ! 2nd fraction of qsr penetration in ice [%] |
---|
| 163 | ! |
---|
[1218] | 164 | SELECT CASE( ksbc ) |
---|
[888] | 165 | CASE( 3 ) ! CLIO bulk formulation |
---|
[1469] | 166 | CALL blk_ice_clio( zsist, zalb_ice_cs, zalb_ice_os, & |
---|
| 167 | & utau_ice , vtau_ice , qns_ice , qsr_ice, & |
---|
| 168 | & qla_ice , dqns_ice , dqla_ice , & |
---|
| 169 | & tprecip , sprecip , & |
---|
[2528] | 170 | & fr1_i0 , fr2_i0 , cp_ice_msh , jpl ) |
---|
[914] | 171 | |
---|
[888] | 172 | CASE( 4 ) ! CORE bulk formulation |
---|
[1470] | 173 | CALL blk_ice_core( zsist, u_ice , v_ice , zalb_ice_cs, & |
---|
[1469] | 174 | & utau_ice , vtau_ice , qns_ice , qsr_ice, & |
---|
| 175 | & qla_ice , dqns_ice , dqla_ice , & |
---|
| 176 | & tprecip , sprecip , & |
---|
[2528] | 177 | & fr1_i0 , fr2_i0 , cp_ice_msh , jpl ) |
---|
[4306] | 178 | IF( ltrcdm2dc_ice ) CALL blk_ice_meanqsr( zalb_ice_cs, qsr_ice_mean, jpl ) |
---|
| 179 | |
---|
[1218] | 180 | CASE( 5 ) ! Coupled formulation : atmosphere-ice stress only (fluxes provided after ice dynamics) |
---|
[1469] | 181 | CALL sbc_cpl_ice_tau( utau_ice , vtau_ice ) |
---|
[888] | 182 | END SELECT |
---|
| 183 | |
---|
[1482] | 184 | CALL iom_put( 'utau_ice', utau_ice ) ! Wind stress over ice along i-axis at I-point |
---|
| 185 | CALL iom_put( 'vtau_ice', vtau_ice ) ! Wind stress over ice along j-axis at I-point |
---|
| 186 | |
---|
[888] | 187 | IF(ln_ctl) THEN ! print mean trends (used for debugging) |
---|
| 188 | CALL prt_ctl_info( 'Ice Forcings ' ) |
---|
[1469] | 189 | CALL prt_ctl( tab2d_1=tprecip ,clinfo1=' sbc_ice_lim: precip : ', tab2d_2=sprecip , clinfo2=' Snow : ' ) |
---|
| 190 | CALL prt_ctl( tab2d_1=utau_ice,clinfo1=' sbc_ice_lim: utau_ice: ', tab2d_2=vtau_ice, clinfo2=' vtau_ice: ' ) |
---|
| 191 | CALL prt_ctl( tab2d_1=sst_m ,clinfo1=' sbc_ice_lim: sst : ', tab2d_2=sss_m , clinfo2=' sss : ' ) |
---|
[1470] | 192 | CALL prt_ctl( tab2d_1=u_oce ,clinfo1=' sbc_ice_lim: u_io : ', tab2d_2=v_oce , clinfo2=' v_io : ' ) |
---|
[1469] | 193 | CALL prt_ctl( tab2d_1=hsnif ,clinfo1=' sbc_ice_lim: hsnif 1: ', tab2d_2=hicif , clinfo2=' hicif : ' ) |
---|
| 194 | CALL prt_ctl( tab2d_1=frld ,clinfo1=' sbc_ice_lim: frld 1: ', tab2d_2=sist , clinfo2=' sist : ' ) |
---|
[888] | 195 | ENDIF |
---|
| 196 | |
---|
| 197 | ! ---------------- ! |
---|
| 198 | ! Ice model step ! |
---|
| 199 | ! ---------------- ! |
---|
[2528] | 200 | numit = numit + nn_fsbc ! Ice model time step |
---|
[1239] | 201 | |
---|
[2528] | 202 | CALL lim_rst_opn_2 ( kt ) ! Open Ice restart file |
---|
| 203 | IF( .NOT. lk_c1d ) THEN ! Ice dynamics & transport (except in 1D case) |
---|
| 204 | CALL lim_dyn_2 ( kt ) ! Ice dynamics ( rheology/dynamics ) |
---|
| 205 | CALL lim_trp_2 ( kt ) ! Ice transport ( Advection/diffusion ) |
---|
| 206 | IF( ln_limdmp ) CALL lim_dmp_2 ( kt ) ! Ice damping |
---|
| 207 | END IF |
---|
| 208 | ! ! Ice surface fluxes in coupled mode |
---|
[3294] | 209 | IF( ksbc == 5 ) THEN |
---|
| 210 | a_i(:,:,1)=fr_i |
---|
| 211 | CALL sbc_cpl_ice_flx( frld, & |
---|
[2715] | 212 | ! optional arguments, used only in 'mixed oce-ice' case |
---|
| 213 | & palbi = zalb_ice_cs, psst = sst_m, pist = zsist ) |
---|
[3294] | 214 | sprecip(:,:) = - emp_ice(:,:) ! Ugly patch, WARNING, in coupled mode, sublimation included in snow (parsub = 0.) |
---|
| 215 | ENDIF |
---|
[2528] | 216 | CALL lim_thd_2 ( kt ) ! Ice thermodynamics |
---|
| 217 | CALL lim_sbc_flx_2 ( kt ) ! update surface ocean mass, heat & salt fluxes |
---|
[4306] | 218 | #if defined key_top |
---|
| 219 | IF( ltrcdm2dc_ice )CALL lim_bio_meanqsr_2 |
---|
| 220 | #endif |
---|
[1481] | 221 | |
---|
[4621] | 222 | IF( .NOT. lk_mpp )THEN |
---|
| 223 | IF( MOD( kt+nn_fsbc-1, ninfo ) == 0 .OR. ntmoy == 1 ) & |
---|
[2528] | 224 | & CALL lim_dia_2 ( kt ) ! Ice Diagnostics |
---|
[4621] | 225 | ENDIF |
---|
[1482] | 226 | # if ! defined key_iomput |
---|
[2528] | 227 | CALL lim_wri_2 ( kt ) ! Ice outputs |
---|
[1482] | 228 | # endif |
---|
[2528] | 229 | IF( lrst_ice ) CALL lim_rst_write_2( kt ) ! Ice restart file |
---|
[888] | 230 | ! |
---|
[3680] | 231 | # if defined key_agrif && defined key_lim2 |
---|
| 232 | IF( .NOT. Agrif_Root() ) CALL agrif_update_lim2( kt ) |
---|
| 233 | # endif |
---|
| 234 | ! |
---|
[2528] | 235 | ENDIF ! End sea-ice time step only |
---|
[888] | 236 | ! |
---|
[2528] | 237 | ! !--------------------------! |
---|
| 238 | ! ! at all ocean time step ! |
---|
| 239 | ! !--------------------------! |
---|
| 240 | ! |
---|
| 241 | ! ! Update surface ocean stresses (only in ice-dynamic case) |
---|
| 242 | ! ! otherwise the atm.-ocean stresses are used everywhere |
---|
| 243 | IF( ln_limdyn ) CALL lim_sbc_tau_2( kt, ub(:,:,1), vb(:,:,1) ) ! using before instantaneous surf. currents |
---|
| 244 | ! |
---|
[3294] | 245 | CALL wrk_dealloc( jpi,jpj,1, zalb_ice_os, zalb_ice_cs, zsist ) |
---|
[2715] | 246 | ! |
---|
[888] | 247 | END SUBROUTINE sbc_ice_lim_2 |
---|
| 248 | |
---|
| 249 | #else |
---|
| 250 | !!---------------------------------------------------------------------- |
---|
| 251 | !! Default option Dummy module NO LIM 2.0 sea-ice model |
---|
| 252 | !!---------------------------------------------------------------------- |
---|
| 253 | CONTAINS |
---|
[1218] | 254 | SUBROUTINE sbc_ice_lim_2 ( kt, ksbc ) ! Dummy routine |
---|
[2715] | 255 | INTEGER, INTENT(in) :: kt, ksbc |
---|
[1218] | 256 | WRITE(*,*) 'sbc_ice_lim_2: You should not have seen this print! error?', kt, ksbc |
---|
[888] | 257 | END SUBROUTINE sbc_ice_lim_2 |
---|
| 258 | #endif |
---|
| 259 | |
---|
| 260 | !!====================================================================== |
---|
| 261 | END MODULE sbcice_lim_2 |
---|