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 921 for trunk/NEMO/LIM_SRC_3/limmsh.F90 – NEMO

Ignore:
Timestamp:
2008-05-13T10:28:52+02:00 (16 years ago)
Author:
rblod
Message:

Correct indentation and print for debug in LIM3, see ticket #134, step I

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/LIM_SRC_3/limmsh.F90

    r888 r921  
    5353      REAL(wp), DIMENSION(jpi,jpj) ::  & 
    5454         zd2d1 , zd1d2       ! Derivative of zh2 (resp. zh1) in the x direction 
    55          !                   ! (resp. y direction) (defined at the center) 
     55      !                   ! (resp. y direction) (defined at the center) 
    5656      REAL(wp) ::         & 
    5757         zh1p  , zh2p   , &  ! Idem zh1, zh2 for the bottom left corner of the grid 
     
    6565         WRITE(numout,*) '~~~~~~~' 
    6666      ENDIF 
    67        
     67 
    6868      !----------------------------------------------------------                           
    6969      !    Initialization of local and some global (common) variables  
    7070      !------------------------------------------------------------------  
    71        
     71 
    7272      njeq   = INT( jpj / 2 )   !i bug mpp potentiel 
    7373      njeqm1 = njeq - 1  
    7474 
    7575      fcor(:,:) = 2. * omega * SIN( gphit(:,:) * rad )   !  coriolis factor 
    76   
     76 
    7777      IF( fcor(1,1) * fcor(1,nlcj) < 0.e0 ) THEN   ! local domain include both hemisphere 
    7878         l_jeq = .TRUE. 
     
    9797      !   For each grid, definition of geometric tables  
    9898      !------------------------------------------------------------------ 
    99        
     99 
    100100      !------------------- 
    101101      ! Conventions :    ! 
     
    106106      !  3 = corner SW x(i-1/2),y(j-1/2) 
    107107      !------------------- 
    108 !!ibug ??? 
     108      !!ibug ??? 
    109109      akappa(:,:,:,:) = 0.e0 
    110110      wght(:,:,:,:) = 0.e0 
     
    112112      tmu(:,:) = 0.e0 
    113113      tmv(:,:) = 0.0e0 ! CGrid EVP 
    114 !!i 
     114      !!i 
    115115      ! metric coefficients for sea ice dynamic 
    116116      !---------------------------------------- 
     
    130130      akappa(:,:,2,1) = zd2d1(:,:) / ( 4.0 * e1t(:,:) * e2t(:,:) ) 
    131131      akappa(:,:,2,2) =        1.0 / ( 2.0 * e2t(:,:) ) 
    132        
     132 
    133133      !                                                      ! weights (wght) 
    134134      DO jj = 2, jpj 
     
    146146      CALL lbc_lnk( wght(:,:,2,1), 'I', 1. )      ! but it is never used 
    147147      CALL lbc_lnk( wght(:,:,2,2), 'I', 1. ) 
    148      
     148 
    149149      ! Coefficients for divergence of the stress tensor 
    150150      !------------------------------------------------- 
     
    209209      CALL lbc_lnk( alambd(:,:,2,1,1,1), 'I', 1. )      ! 
    210210      CALL lbc_lnk( alambd(:,:,2,1,1,2), 'I', 1. )      ! 
    211              
     211 
    212212 
    213213      ! Initialization of ice masks 
    214214      !---------------------------- 
    215        
     215 
    216216      tms(:,:) = tmask(:,:,1)      ! ice T-point  : use surface tmask 
    217217 
    218 !      tmu(:,1) = 0.e0 
    219 !      tmu(1,:) = 0.e0 
    220 !      tmv(:,1) = 0.e0 
    221 !      tmv(1,:) = 0.e0 
     218      !      tmu(:,1) = 0.e0 
     219      !      tmu(1,:) = 0.e0 
     220      !      tmv(:,1) = 0.e0 
     221      !      tmv(1,:) = 0.e0 
    222222 
    223223      DO jj = 1, jpj - 1 
     
    226226            tmv(ji,jj) =  tms(ji,jj) * tms(ji,jj+1) 
    227227            tmf(ji,jj) =  tms(ji,jj) * tms(ji+1,jj) * tms(ji,jj+1) * & 
    228                           tms(ji+1,jj+1) 
    229          END DO 
    230       END DO 
    231        
     228               tms(ji+1,jj+1) 
     229         END DO 
     230      END DO 
     231 
    232232      !--lateral boundary conditions     
    233233      CALL lbc_lnk( tmu(:,:), 'U', 1. ) 
    234234      CALL lbc_lnk( tmv(:,:), 'V', 1. ) 
    235235      CALL lbc_lnk( tmf(:,:), 'F', 1. ) 
    236        
     236 
    237237      ! unmasked and masked area of T-grid cell 
    238238      area(:,:) = e1t(:,:) * e2t(:,:) 
    239        
     239 
    240240   END SUBROUTINE lim_msh 
    241241 
Note: See TracChangeset for help on using the changeset viewer.