Changeset 2077 for branches/devmercator2010/NEMO/LIM_SRC_2/limmsh_2.F90
- Timestamp:
- 2010-09-09T10:43:51+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/devmercator2010/NEMO/LIM_SRC_2/limmsh_2.F90
r2076 r2077 47 47 !! original : 01-04 (LIM) 48 48 !! addition : 02-08 (C. Ethe, G. Madec) 49 !! additions : 2009-05 (addition of the lim2_evp case, G. Garric)50 49 !!--------------------------------------------------------------------- 51 50 !! * Local variables 52 51 INTEGER :: ji, jj ! dummy loop indices 53 52 54 REAL(wp) :: &55 zusden ! temporary scalars56 #if defined key_lim2_vp57 53 REAL(wp), DIMENSION(jpi,jpj) :: & 58 54 zd2d1 , zd1d2 ! Derivative of zh2 (resp. zh1) in the x direction … … 61 57 zh1p , zh2p , & ! Idem zh1, zh2 for the bottom left corner of the grid 62 58 zd2d1p, zd1d2p , & ! Idem zd2d1, zd1d2 for the bottom left corner of the grid 63 zusden2 ! temporary scalars 64 #endif 59 zusden, zusden2 ! temporary scalars 65 60 !!--------------------------------------------------------------------- 66 61 … … 117 112 !------------------- 118 113 !!ibug ??? 114 akappa(:,:,:,:) = 0.e0 119 115 wght(:,:,:,:) = 0.e0 120 tmu(:,:) = 0.e0121 #if defined key_lim2_vp122 akappa(:,:,:,:) = 0.e0123 116 alambd(:,:,:,:,:,:) = 0.e0 124 #else 125 tmv(:,:) = 0.e0 126 tmf(:,:) = 0.e0 127 #endif 117 tmu(:,:) = 0.e0 128 118 !!i 129 119 130 #if defined key_lim2_vp 120 131 121 ! metric coefficients for sea ice dynamic 132 122 !---------------------------------------- … … 162 152 CALL lbc_lnk( wght(:,:,2,1), 'I', 1. ) ! but it is never used 163 153 CALL lbc_lnk( wght(:,:,2,2), 'I', 1. ) 164 #else165 ! ! weights (wght)166 DO jj = 2, jpj-1167 DO ji = 2, jpi-1168 zusden = 1. / ( ( e1t(ji+1,jj) + e1t(ji,jj ) ) &169 & * ( e2t(ji,jj+1) + e2t(ji ,jj) ) )170 wght(ji,jj,1,1) = zusden * e1t(ji+1,jj) * e2t(ji,jj+1)171 wght(ji,jj,1,2) = zusden * e1t(ji+1,jj) * e2t(ji,jj )172 wght(ji,jj,2,1) = zusden * e1t(ji ,jj) * e2t(ji,jj+1)173 wght(ji,jj,2,2) = zusden * e1t(ji ,jj) * e2t(ji,jj )174 END DO175 END DO176 177 !With EVP, the weights are calculated on 'F' points178 CALL lbc_lnk( wght(:,:,1,1), 'F', 1. ) ! CAUTION: even with the lbc_lnk at ice U-V-point179 CALL lbc_lnk( wght(:,:,1,2), 'F', 1. ) ! the value of wght at jpj is wrong180 CALL lbc_lnk( wght(:,:,2,1), 'F', 1. ) ! but it is never used181 CALL lbc_lnk( wght(:,:,2,2), 'F', 1. )182 183 #endif184 154 185 155 ! Coefficients for divergence of the stress tensor 186 156 !------------------------------------------------- 187 157 188 #if defined key_lim2_vp189 158 DO jj = 2, jpj 190 159 DO ji = 2, jpi ! NO vector opt. … … 254 223 CALL lbc_lnk( alambd(:,:,2,1,1,1), 'I', 1. ) ! 255 224 CALL lbc_lnk( alambd(:,:,2,1,1,2), 'I', 1. ) ! 256 #endif257 225 258 226 … … 265 233 tmu(:,1) = 0.e0 266 234 tmu(1,:) = 0.e0 267 268 #if defined key_lim2_vp269 235 DO jj = 2, jpj ! ice U.V-point: computed from ice T-point mask 270 236 DO ji = 2, jpim1 ! NO vector opt. … … 275 241 !--lateral boundary conditions 276 242 CALL lbc_lnk( tmu(:,:), 'I', 1. ) 277 #else278 tmv(:,1) = 0.e0 !SB279 tmv(1,:) = 0.e0 !SB280 tmf(1,:) = 0.e0281 tmf(:,1) = 0.e0282 DO jj = 1, jpj - 1283 DO ji = 1 , jpi - 1284 tmu(ji,jj) = tms(ji,jj) * tms(ji+1,jj)285 tmv(ji,jj) = tms(ji,jj) * tms(ji,jj+1)286 tmf(ji,jj) = tms(ji,jj) * tms(ji+1,jj) * tms(ji,jj+1) * &287 tms(ji+1,jj+1)288 END DO289 END DO290 291 !--lateral boundary conditions292 CALL lbc_lnk( tmu(:,:), 'U', 1. )293 CALL lbc_lnk( tmv(:,:), 'V', 1. )294 CALL lbc_lnk( tmf(:,:), 'F', 1. )295 #endif296 243 297 244 ! unmasked and masked area of T-grid cell
Note: See TracChangeset
for help on using the changeset viewer.