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 88 for trunk/NEMO/LIM_SRC/limhdf.F90 – NEMO

Ignore:
Timestamp:
2004-04-22T15:50:27+02:00 (20 years ago)
Author:
opalod
Message:

CT : UPDATE057 : # General syntax, alignement, comments corrections

# l_ctl alone replace the set (l_ctl .AND. lwp)
# Add of diagnostics which are activated when using l_ctl logical

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/LIM_SRC/limhdf.F90

    r12 r88  
    11MODULE limhdf 
    2 #if defined key_ice_lim 
    32   !!====================================================================== 
    43   !!                    ***  MODULE limhdf   *** 
    5    !! LIM diffusion ice model : sea-ice variables horizontal diffusion 
     4   !! LIM ice model : horizontal diffusion of sea-ice quantities 
    65   !!====================================================================== 
    7  
     6#if defined key_ice_lim 
     7   !!---------------------------------------------------------------------- 
     8   !!   'key_ice_lim'                                     LIM sea-ice model 
    89   !!---------------------------------------------------------------------- 
    910   !!   lim_hdf  : diffusion trend on sea-ice variable 
     
    9697            DO ji = fs_2 , fs_jpim1   ! vector opt. 
    9798               zfact(ji,jj) = ( e2u(ji,jj) + e2u(ji-1,jj  ) + e1v(ji,jj) + e1v(ji,jj-1) ) & 
    98                              / ( e1t(ji,jj) * e2t(ji,jj) ) 
     99                  &          / ( e1t(ji,jj) * e2t(ji,jj) ) 
    99100            END DO 
    100101         END DO 
     
    144145 
    145146         ! convergence test 
    146          zconv = 0.0 
     147         zconv = 0.e0 
    147148         DO jj = 2, jpjm1 
    148149            DO ji = 2, jpim1 
     
    165166 
    166167      ptab(:,:) = ptab(:,:) 
    167       IF( l_ctl .AND. lwp ) THEN 
    168          WRITE(numout,*) ' lim_hdf  : ', SUM( ptab-ptab0 ), ' zconv= ', zconv, ' iter= ', iter 
    169       ENDIF 
     168 
     169      IF(l_ctl)   WRITE(numout,*) ' lim_hdf  : ', SUM( ptab-ptab0 ), ' zconv= ', zconv, ' iter= ', iter 
    170170 
    171171   END SUBROUTINE lim_hdf 
     172 
    172173#else 
    173    !!====================================================================== 
    174    !!                       ***  MODULE limhdf   *** 
    175    !!                          no sea ice model 
    176    !!====================================================================== 
     174   !!---------------------------------------------------------------------- 
     175   !!   Default option          Dummy module           NO LIM sea-ice model 
     176   !!---------------------------------------------------------------------- 
    177177CONTAINS 
    178178   SUBROUTINE lim_hdf         ! Empty routine 
Note: See TracChangeset for help on using the changeset viewer.