- Timestamp:
- 2017-07-10T12:18:03+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2017/dev_r8183_ICEMODEL/NEMOGCM/NEMO/OPA_SRC/BDY/bdyice_lim.F90
r7646 r8306 2 2 !!====================================================================== 3 3 !! *** MODULE bdyice_lim *** 4 !! Unstructured Open Boundary Cond. : Open boundary conditions for sea-ice (LIM 2 and LIM3)4 !! Unstructured Open Boundary Cond. : Open boundary conditions for sea-ice (LIM3) 5 5 !!====================================================================== 6 6 !! History : 3.3 ! 2010-09 (D. Storkey) Original code … … 8 8 !! - ! 2012-01 (C. Rousset) add lim3 and remove useless jk loop 9 9 !!---------------------------------------------------------------------- 10 #if defined key_lim2 || defined key_lim3 11 !!---------------------------------------------------------------------- 12 !! 'key_lim2' LIM-2 sea ice model 10 #if defined key_lim3 11 !!---------------------------------------------------------------------- 13 12 !! 'key_lim3' LIM-3 sea ice model 14 13 !!---------------------------------------------------------------------- … … 20 19 USE eosbn2 ! equation of state 21 20 USE oce ! ocean dynamics and tracers variables 22 #if defined key_lim2 23 USE par_ice_2 24 USE ice_2 ! LIM_2 ice variables 25 USE dom_ice_2 ! sea-ice domain 26 #elif defined key_lim3 21 #if defined key_lim3 27 22 USE ice ! LIM_3 ice variables 28 23 USE limvar … … 55 50 !! *** SUBROUTINE bdy_ice_lim *** 56 51 !! 57 !! ** Purpose : - Apply open boundary conditions for ice (LIM 2 and LIM3)52 !! ** Purpose : - Apply open boundary conditions for ice (LIM3) 58 53 !! 59 54 !!---------------------------------------------------------------------- … … 110 105 REAL(wp) :: zwgt, zwgt1 ! local scalar 111 106 REAL(wp) :: ztmelts, zdh 112 #if defined key_lim2 && ! defined key_lim2_vp && defined key_agrif113 USE ice_2, vt_s => hsnm114 USE ice_2, vt_i => hicm115 #endif116 107 !!------------------------------------------------------------------------------ 117 108 ! … … 120 111 jgrd = 1 ! Everything is at T-points here 121 112 ! 122 #if defined key_lim2 123 DO jb = 1, idx%nblenrim(jgrd) 124 ji = idx%nbi(jb,jgrd) 125 jj = idx%nbj(jb,jgrd) 126 zwgt = idx%nbw(jb,jgrd) 127 zwgt1 = 1.e0 - idx%nbw(jb,jgrd) 128 frld (ji,jj) = ( frld (ji,jj) * zwgt1 + dta%frld (jb) * zwgt ) * tmask(ji,jj,1) ! Leads fraction 129 hicif(ji,jj) = ( hicif(ji,jj) * zwgt1 + dta%hicif(jb) * zwgt ) * tmask(ji,jj,1) ! Ice depth 130 hsnif(ji,jj) = ( hsnif(ji,jj) * zwgt1 + dta%hsnif(jb) * zwgt ) * tmask(ji,jj,1) ! Snow depth 131 END DO 132 133 CALL lbc_bdy_lnk( frld, 'T', 1., ib_bdy ) ! lateral boundary conditions 134 CALL lbc_bdy_lnk( hicif, 'T', 1., ib_bdy ) 135 CALL lbc_bdy_lnk( hsnif, 'T', 1., ib_bdy ) 136 137 vt_i(:,:) = hicif(:,:) * frld(:,:) 138 vt_s(:,:) = hsnif(:,:) * frld(:,:) 139 ! 140 #elif defined key_lim3 113 #if defined key_lim3 141 114 142 115 DO jl = 1, jpl
Note: See TracChangeset
for help on using the changeset viewer.