- Timestamp:
- 2016-12-01T18:10:41+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2016/dev_merge_2016/NEMOGCM/NEMO/LIM_SRC_3/limmsh.F90
r5123 r7421 54 54 ENDIF 55 55 56 IF( jphgr_msh == 2 .OR. jphgr_msh == 3 .OR. jphgr_msh == 5 ) & 57 & CALL ctl_stop(' Coriolis parameter in LIM not set for f- or beta-plane') 58 59 ! !== coriolis factor & Equator position ==! 56 ! !== Equator position ==! 60 57 njeq = INT( jpj / 2 ) 61 58 njeqm1 = njeq - 1 62 59 ! 63 fcor(:,:) = 2. * omega * SIN( gphit(:,:) * rad ) ! coriolis factor 64 ! 65 IF( fcor(1,1) * fcor(1,nlcj) < 0.e0 ) THEN ! local domain include both hemisphere 60 IF( ff_t(1,1) * ff_t(1,nlcj) < 0._wp ) THEN ! local domain include both hemisphere 66 61 l_jeq = .TRUE. 67 62 njeq = 1 68 DO WHILE ( njeq <= jpj .AND. f cor(1,njeq) < 0.e0)63 DO WHILE ( njeq <= jpj .AND. ff_t(1,njeq) < 0._wp ) 69 64 njeq = njeq + 1 70 65 END DO 71 66 IF(lwp ) WRITE(numout,*) ' the equator is inside the domain at about njeq = ', njeq 72 ELSEIF( f cor(1,1) < 0.e0) THEN67 ELSEIF( ff_t(1,1) < 0._wp ) THEN 73 68 l_jeq = .FALSE. 74 69 njeq = jpj … … 84 79 85 80 ! !== metric coefficients for sea ice dynamic ==! 86 wght(:,:,:,:) = 0. e081 wght(:,:,:,:) = 0._wp 87 82 !!gm Optimisation : wght to be defined at F-point, not I-point and change in limrhg 88 83 DO jj = 2, jpj 89 84 DO ji = 2, jpi 90 zusden = 1. e0/ ( ( e1t(ji,jj) + e1t(ji-1,jj ) ) &91 & * ( e2t(ji,jj) + e2t(ji ,jj-1) ) )85 zusden = 1._wp / ( ( e1t(ji,jj) + e1t(ji-1,jj ) ) & 86 & * ( e2t(ji,jj) + e2t(ji ,jj-1) ) ) 92 87 wght(ji,jj,1,1) = zusden * e1t(ji ,jj) * e2t(ji,jj ) 93 88 wght(ji,jj,1,2) = zusden * e1t(ji ,jj) * e2t(ji,jj-1)
Note: See TracChangeset
for help on using the changeset viewer.