Changeset 921 for trunk/NEMO/LIM_SRC_3/limmsh.F90
- Timestamp:
- 2008-05-13T10:28:52+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/LIM_SRC_3/limmsh.F90
r888 r921 53 53 REAL(wp), DIMENSION(jpi,jpj) :: & 54 54 zd2d1 , zd1d2 ! Derivative of zh2 (resp. zh1) in the x direction 55 55 ! ! (resp. y direction) (defined at the center) 56 56 REAL(wp) :: & 57 57 zh1p , zh2p , & ! Idem zh1, zh2 for the bottom left corner of the grid … … 65 65 WRITE(numout,*) '~~~~~~~' 66 66 ENDIF 67 67 68 68 !---------------------------------------------------------- 69 69 ! Initialization of local and some global (common) variables 70 70 !------------------------------------------------------------------ 71 71 72 72 njeq = INT( jpj / 2 ) !i bug mpp potentiel 73 73 njeqm1 = njeq - 1 74 74 75 75 fcor(:,:) = 2. * omega * SIN( gphit(:,:) * rad ) ! coriolis factor 76 76 77 77 IF( fcor(1,1) * fcor(1,nlcj) < 0.e0 ) THEN ! local domain include both hemisphere 78 78 l_jeq = .TRUE. … … 97 97 ! For each grid, definition of geometric tables 98 98 !------------------------------------------------------------------ 99 99 100 100 !------------------- 101 101 ! Conventions : ! … … 106 106 ! 3 = corner SW x(i-1/2),y(j-1/2) 107 107 !------------------- 108 !!ibug ???108 !!ibug ??? 109 109 akappa(:,:,:,:) = 0.e0 110 110 wght(:,:,:,:) = 0.e0 … … 112 112 tmu(:,:) = 0.e0 113 113 tmv(:,:) = 0.0e0 ! CGrid EVP 114 !!i114 !!i 115 115 ! metric coefficients for sea ice dynamic 116 116 !---------------------------------------- … … 130 130 akappa(:,:,2,1) = zd2d1(:,:) / ( 4.0 * e1t(:,:) * e2t(:,:) ) 131 131 akappa(:,:,2,2) = 1.0 / ( 2.0 * e2t(:,:) ) 132 132 133 133 ! ! weights (wght) 134 134 DO jj = 2, jpj … … 146 146 CALL lbc_lnk( wght(:,:,2,1), 'I', 1. ) ! but it is never used 147 147 CALL lbc_lnk( wght(:,:,2,2), 'I', 1. ) 148 148 149 149 ! Coefficients for divergence of the stress tensor 150 150 !------------------------------------------------- … … 209 209 CALL lbc_lnk( alambd(:,:,2,1,1,1), 'I', 1. ) ! 210 210 CALL lbc_lnk( alambd(:,:,2,1,1,2), 'I', 1. ) ! 211 211 212 212 213 213 ! Initialization of ice masks 214 214 !---------------------------- 215 215 216 216 tms(:,:) = tmask(:,:,1) ! ice T-point : use surface tmask 217 217 218 ! tmu(:,1) = 0.e0219 ! tmu(1,:) = 0.e0220 ! tmv(:,1) = 0.e0221 ! tmv(1,:) = 0.e0218 ! tmu(:,1) = 0.e0 219 ! tmu(1,:) = 0.e0 220 ! tmv(:,1) = 0.e0 221 ! tmv(1,:) = 0.e0 222 222 223 223 DO jj = 1, jpj - 1 … … 226 226 tmv(ji,jj) = tms(ji,jj) * tms(ji,jj+1) 227 227 tmf(ji,jj) = tms(ji,jj) * tms(ji+1,jj) * tms(ji,jj+1) * & 228 229 END DO 230 END DO 231 228 tms(ji+1,jj+1) 229 END DO 230 END DO 231 232 232 !--lateral boundary conditions 233 233 CALL lbc_lnk( tmu(:,:), 'U', 1. ) 234 234 CALL lbc_lnk( tmv(:,:), 'V', 1. ) 235 235 CALL lbc_lnk( tmf(:,:), 'F', 1. ) 236 236 237 237 ! unmasked and masked area of T-grid cell 238 238 area(:,:) = e1t(:,:) * e2t(:,:) 239 239 240 240 END SUBROUTINE lim_msh 241 241
Note: See TracChangeset
for help on using the changeset viewer.