New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 7421 for branches/2016/dev_merge_2016/NEMOGCM/NEMO/LIM_SRC_3/limmsh.F90 – NEMO

Ignore:
Timestamp:
2016-12-01T18:10:41+01:00 (8 years ago)
Author:
flavoni
Message:

#1811 merge dev_CNRS_MERATOR_2016 with dev_merge_2016 branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_merge_2016/NEMOGCM/NEMO/LIM_SRC_3/limmsh.F90

    r5123 r7421  
    5454      ENDIF 
    5555 
    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  ==! 
    6057      njeq   = INT( jpj / 2 )  
    6158      njeqm1 = njeq - 1  
    6259      ! 
    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 
    6661         l_jeq = .TRUE. 
    6762         njeq  = 1 
    68          DO WHILE ( njeq <= jpj .AND. fcor(1,njeq) < 0.e0 ) 
     63         DO WHILE ( njeq <= jpj .AND. ff_t(1,njeq) < 0._wp ) 
    6964            njeq = njeq + 1 
    7065         END DO 
    7166         IF(lwp ) WRITE(numout,*) '          the equator is inside the domain at about njeq = ', njeq 
    72       ELSEIF( fcor(1,1) < 0.e0 ) THEN 
     67      ELSEIF( ff_t(1,1) < 0._wp ) THEN 
    7368         l_jeq = .FALSE. 
    7469         njeq = jpj 
     
    8479 
    8580      !                           !==  metric coefficients for sea ice dynamic  ==! 
    86       wght(:,:,:,:) = 0.e0 
     81      wght(:,:,:,:) = 0._wp 
    8782!!gm  Optimisation :  wght to be defined at F-point, not I-point  and change in limrhg 
    8883      DO jj = 2, jpj 
    8984         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) ) ) 
    9287            wght(ji,jj,1,1) = zusden * e1t(ji  ,jj) * e2t(ji,jj  ) 
    9388            wght(ji,jj,1,2) = zusden * e1t(ji  ,jj) * e2t(ji,jj-1) 
Note: See TracChangeset for help on using the changeset viewer.