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 3635 for branches/2012/dev_NOC_2012_rev3555/NEMOGCM/NEMO/LIM_SRC_2/limdmp_2.F90 – NEMO

Ignore:
Timestamp:
2012-11-22T18:52:43+01:00 (11 years ago)
Author:
acc
Message:

Branch dev_NOC_2012_r3555. #1006. Step 13: Merge in trunk changes between revision 3452 and 3555. NOC merge complete subject to final SETTE testing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2012/dev_NOC_2012_rev3555/NEMOGCM/NEMO/LIM_SRC_2/limdmp_2.F90

    r3625 r3635  
    1111   !!   'key_lim2'                                    LIM 2.0 sea-ice model 
    1212   !!---------------------------------------------------------------------- 
    13    !!   lim_dmp_2      : ice model damping 
     13   !!   lim_dmp_2     : ice model damping 
    1414   !!---------------------------------------------------------------------- 
    15    USE ice_2           ! ice variables  
     15   USE ice_2          ! ice variables  
    1616   USE sbc_oce, ONLY : nn_fsbc ! for fldread 
    17    USE dom_oce         ! for mi0; mi1 etc ... 
    18    USE fldread         ! read input fields 
    19    USE in_out_manager  ! I/O manager 
    20    USE lib_mpp         ! MPP library 
     17   USE dom_oce        ! for mi0; mi1 etc ... 
     18   USE fldread        ! read input fields 
     19   USE in_out_manager ! I/O manager 
     20   USE lib_mpp        ! MPP library 
    2121   USE lib_fortran     ! Fortran utilities (allows no signed zero when 'key_nosignedzero' defined)   
    2222 
     
    2626   PUBLIC   lim_dmp_2     ! called by sbc_ice_lim2 
    2727 
    28    REAL(wp), DIMENSION(:,:,:), ALLOCATABLE ::   resto_ice   ! restoring coeff. on ICE   [s-1] 
    29  
    30    INTEGER, PARAMETER :: jp_hicif = 1 , jp_frld = 2 
    31    TYPE(FLD), ALLOCATABLE, DIMENSION(:) :: sf_icedmp    ! structure of ice damping input 
     28   INTEGER  , PARAMETER :: jp_hicif = 1 , jp_frld = 2 
     29   REAL(wp) , ALLOCATABLE, DIMENSION(:,:,:) ::   resto_ice   ! restoring coeff. on ICE   [s-1] 
     30   TYPE(FLD), ALLOCATABLE, DIMENSION(:)     ::   sf_icedmp   ! structure of ice damping input 
    3231    
    3332   !! * Substitution 
     
    4443      !!                   ***  ROUTINE lim_dmp_2  *** 
    4544      !! 
    46       !! ** purpose : ice model damping : restoring ice thickness and fraction leads 
     45      !! ** purpose :   restore ice thickness and lead fraction 
    4746      !! 
    48       !! ** method  : the key_tradmp must be used to compute resto(:,:,1) coef. 
     47      !! ** method  :   restore ice thickness and lead fraction using a restoring 
     48      !!              coefficient defined by the user in lim_dmp_init 
     49      !! 
     50      !! ** Action  : - update hicif and frld   
     51      !! 
    4952      !!--------------------------------------------------------------------- 
    5053      INTEGER, INTENT(in) ::   kt   ! ocean time-step 
     
    5457      !!--------------------------------------------------------------------- 
    5558      ! 
    56       IF (kt == nit000) THEN  
     59      IF( kt == nit000 ) THEN  
    5760         IF(lwp) WRITE(numout,*) 
    5861         IF(lwp) WRITE(numout,*) 'lim_dmp_2 : Ice thickness and ice concentration restoring' 
     
    7275            &         hicif(:,:) - rdt_ice * resto_ice(:,:,1) * ( hicif(:,:) - sf_icedmp(jp_hicif)%fnow(:,:,1) )  )  
    7376!CDIR COLLAPSE 
    74          hicif(:,:) = MAX( 0._wp, MIN( 1._wp,         &        ! 0<= frld<=1    values which blow the run up 
     77         frld (:,:) = MAX( 0._wp, MIN( 1._wp,         &        ! 0<= frld<=1    values which blow the run up 
    7578            &         frld (:,:) - rdt_ice * resto_ice(:,:,1) * ( frld (:,:) - sf_icedmp(jp_frld )%fnow(:,:,1) )  )  ) 
    7679         ! 
     
    8487      !!                   ***  ROUTINE lim_dmp_init  *** 
    8588      !! 
    86       !! ** Purpose :   Initialization for the ice thickness and concentration  
    87       !!                restoring 
    88       !!              restoring will be used. It is used to mimic ice open 
    89       !!              boundaries. 
     89      !! ** Purpose :   set the coefficient for the ice thickness and lead fraction restoring 
    9090      !! 
    91       !! ** Method  :  ????? 
     91      !! ** Method  :   restoring is used to mimic ice open boundaries. 
     92      !!              the restoring coef. (a 2D array) has to be defined by the user. 
     93      !!              here is given as an example a restoring along north and south boundaries 
    9294      !!       
    9395      !! ** Action  :   define resto_ice(:,:,1) 
Note: See TracChangeset for help on using the changeset viewer.