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 5059 for branches/2015/dev_r5044_CNRS_LIM3CLEAN/NEMOGCM/NEMO/LIM_SRC_3/limdyn.F90 – NEMO

Ignore:
Timestamp:
2015-02-04T17:22:15+01:00 (9 years ago)
Author:
clem
Message:

LIM3: set ice diffusivity independant of the resolution in the namelist. The dependancy is done in the code itself

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5044_CNRS_LIM3CLEAN/NEMOGCM/NEMO/LIM_SRC_3/limdyn.F90

    r5055 r5059  
    66   !! history :  1.0  ! 2002-08  (C. Ethe, G. Madec)  original VP code  
    77   !!            3.0  ! 2007-03  (MA Morales Maqueda, S. Bouillon, M. Vancoppenolle)  LIM3: EVP-Cgrid 
    8    !!            4.0  ! 2011-02  (G. Madec) dynamical allocation 
     8   !!            3.5  ! 2011-02  (G. Madec) dynamical allocation 
    99   !!---------------------------------------------------------------------- 
    1010#if defined key_lim3 
     
    244244      INTEGER  ::   ios                 ! Local integer output status for namelist read 
    245245      NAMELIST/namicedyn/ cw, pstar, c_rhg, creepl, ecc, ahi0, nevp, relast 
     246      INTEGER  ::   ji, jj 
     247      REAL(wp) ::   za00, zd_max 
    246248      !!------------------------------------------------------------------- 
    247249 
     
    264266         WRITE(numout,*) '   creep limit                                      creepl = ', creepl 
    265267         WRITE(numout,*) '   eccentricity of the elliptical yield curve       ecc    = ', ecc 
    266          WRITE(numout,*) '   horizontal diffusivity coeff. for sea-ice        ahi0   = ', ahi0 
     268         WRITE(numout,*) '   horizontal diffusivity coeff. (orca2 grid)       ahi0   = ', ahi0 
    267269         WRITE(numout,*) '   number of iterations for subcycling              nevp   = ', nevp 
    268270         WRITE(numout,*) '   ratio of elastic timescale over ice time step    relast = ', relast 
     
    271273      usecc2 = 1._wp / ( ecc * ecc ) 
    272274      rhoco  = rau0  * cw 
    273  
     275      ! 
    274276      !  Diffusion coefficients. 
    275       ahiu(:,:) = ahi0 * umask(:,:,1) 
    276       ahiv(:,:) = ahi0 * vmask(:,:,1) 
    277       ! 
     277      zd_max = MAX( MAXVAL( e1t(:,:) ), MAXVAL( e2t(:,:) ) ) 
     278      IF( lk_mpp )   CALL mpp_max( zd_max )   ! max over the global domain 
     279            
     280      za00 = ahi0 / ( 1.e05_wp )              ! 1.e05 = 100km = max grid space at 60° latitude in orca2 
     281                                              !                 (i.e. 60° = min latitude for ice cover)   
     282      DO jj = 1, jpj 
     283         DO ji = 1, jpi 
     284            ahiu(ji,jj) = za00 * MAX( e1t(ji,jj), e2t(ji,jj) ) * umask(ji,jj,1) 
     285            ahiv(ji,jj) = za00 * MAX( e1f(ji,jj), e2f(ji,jj) ) * vmask(ji,jj,1) 
     286         END DO 
     287      END DO 
     288      ! 
     289      IF(lwp) WRITE(numout,*) '' 
     290      IF(lwp) WRITE(numout,*) '   laplacian operator: ahim proportional to e1' 
     291      IF(lwp) WRITE(numout,*) '   maximum grid-spacing = ', zd_max, ' maximum value for ahim = ', za00*zd_max 
     292  
    278293   END SUBROUTINE lim_dyn_init 
    279294 
Note: See TracChangeset for help on using the changeset viewer.