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 4332 for branches/2013/dev_r4028_CNRS_LIM3/NEMOGCM/NEMO/LIM_SRC_3/limhdf.F90 – NEMO

Ignore:
Timestamp:
2013-12-11T15:38:42+01:00 (10 years ago)
Author:
clem
Message:

update LIM3 to fix remaining bugs. Now working in global and regional config.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_r4028_CNRS_LIM3/NEMOGCM/NEMO/LIM_SRC_3/limhdf.F90

    r4045 r4332  
    2929 
    3030   LOGICAL  ::   linit = .TRUE.              ! initialization flag (set to flase after the 1st call) 
    31    REAL(wp) ::   epsi04 = 1e-04              ! constant 
     31   REAL(wp) ::   epsi04 = 1.e-04              ! constant 
    3232   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) ::   efact   ! metric coefficient 
    3333 
     
    5454      REAL(wp), DIMENSION(jpi,jpj), INTENT( inout ) ::   ptab    ! Field on which the diffusion is applied 
    5555      ! 
    56       INTEGER  ::  ji, jj            ! dummy loop indices 
    57       INTEGER  ::  its, iter, ierr   ! local integers 
    58       REAL(wp) ::   zalfa, zrlxint, zconv, zeps   ! local scalars 
     56      INTEGER  ::  ji, jj                   ! dummy loop indices 
     57      INTEGER  ::  its, iter, ierr          ! local integers 
     58      REAL(wp) ::   zalfa, zrlxint, zconv   ! local scalars 
    5959      REAL(wp), POINTER, DIMENSION(:,:) ::   zrlx, zflu, zflv, zdiv0, zdiv, ztab0 
    6060      CHARACTER(lc) ::   charout   ! local character 
     
    7979      zalfa = 0.5_wp                      ! =1.0/0.5/0.0 = implicit/Cranck-Nicholson/explicit 
    8080      its   = 100                         ! Maximum number of iteration 
    81       zeps  =  2._wp * epsi04 
    8281      ! 
    8382      ztab0(:, : ) = ptab(:,:)      ! Arrays initialization 
     
    9493      iter  = 0 
    9594      ! 
    96       DO WHILE( zconv > zeps .AND. iter <= its )   ! Sub-time step loop 
     95      DO WHILE( zconv > ( 2._wp * epsi04 ) .AND. iter <= its )   ! Sub-time step loop 
    9796         ! 
    9897         iter = iter + 1                                 ! incrementation of the sub-time step number 
Note: See TracChangeset for help on using the changeset viewer.