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 14072 for NEMO/trunk/src/ICE/icedyn.F90 – NEMO

Ignore:
Timestamp:
2020-12-04T08:48:38+01:00 (3 years ago)
Author:
laurent
Message:

Merging branch "2020/dev_r13648_ASINTER-04_laurent_bulk_ice", ticket #2369

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/ICE/icedyn.F90

    r14005 r14072  
    22   !!====================================================================== 
    33   !!                     ***  MODULE  icedyn  *** 
    4    !!   Sea-Ice dynamics : master routine for sea ice dynamics  
     4   !!   Sea-Ice dynamics : master routine for sea ice dynamics 
    55   !!====================================================================== 
    66   !! history :  4.0  ! 2018  (C. Rousset)  original code SI3 [aka Sea Ice cube] 
     
    3636   PUBLIC   ice_dyn        ! called by icestp.F90 
    3737   PUBLIC   ice_dyn_init   ! called by icestp.F90 
    38     
     38 
    3939   INTEGER ::              nice_dyn   ! choice of the type of dynamics 
    4040   !                                        ! associated indices: 
    4141   INTEGER, PARAMETER ::   np_dynALL     = 1   ! full ice dynamics               (rheology + advection + ridging/rafting + correction) 
    42    INTEGER, PARAMETER ::   np_dynRHGADV  = 2   ! pure dynamics                   (rheology + advection)  
     42   INTEGER, PARAMETER ::   np_dynRHGADV  = 2   ! pure dynamics                   (rheology + advection) 
    4343   INTEGER, PARAMETER ::   np_dynADV1D   = 3   ! only advection 1D - test case from Schar & Smolarkiewicz 1996 
    4444   INTEGER, PARAMETER ::   np_dynADV2D   = 4   ! only advection 2D w prescribed vel.(rn_uvice + advection) 
     
    5151   REAL(wp) ::   rn_uice          !    prescribed u-vel (case np_dynADV1D & np_dynADV2D) 
    5252   REAL(wp) ::   rn_vice          !    prescribed v-vel (case np_dynADV1D & np_dynADV2D) 
    53     
     53 
    5454   TYPE(FLD), ALLOCATABLE, DIMENSION(:) ::   sf_icbmsk   ! structure of input grounded icebergs mask (file informations, fields read) 
    5555 
     
    6666      !!------------------------------------------------------------------- 
    6767      !!               ***  ROUTINE ice_dyn  *** 
    68       !!                
     68      !! 
    6969      !! ** Purpose :   this routine manages sea ice dynamics 
    7070      !! 
     
    9191         WRITE(numout,*)'~~~~~~~' 
    9292      ENDIF 
    93       !                       
     93      ! 
    9494      ! retrieve thickness from volume for landfast param. and UMx advection scheme 
    9595      WHERE( a_i(:,:,:) >= epsi20 ) 
     
    118118      CASE ( np_dynALL )           !==  all dynamical processes  ==! 
    119119         ! 
    120          CALL ice_dyn_rhg   ( kt, Kmm )                                     ! -- rheology   
     120         CALL ice_dyn_rhg   ( kt, Kmm )                                     ! -- rheology 
    121121         CALL ice_dyn_adv   ( kt )                                          ! -- advection of ice 
    122          CALL ice_dyn_rdgrft( kt )                                          ! -- ridging/rafting  
     122         CALL ice_dyn_rdgrft( kt )                                          ! -- ridging/rafting 
    123123         CALL ice_cor       ( kt , 1 )                                      ! -- Corrections 
    124124         ! 
    125125      CASE ( np_dynRHGADV  )       !==  no ridge/raft & no corrections ==! 
    126126         ! 
    127          CALL ice_dyn_rhg   ( kt, Kmm )                                     ! -- rheology   
     127         CALL ice_dyn_rhg   ( kt, Kmm )                                     ! -- rheology 
    128128         CALL ice_dyn_adv   ( kt )                                          ! -- advection of ice 
    129129         CALL Hpiling                                                       ! -- simple pile-up (replaces ridging/rafting) 
     
    134134         ! --- monotonicity test from Schar & Smolarkiewicz 1996 --- ! 
    135135         ! CFL = 0.5 at a distance from the bound of 1/6 of the basin length 
    136          ! Then for dx = 2m and dt = 1s => rn_uice = u (1/6th) = 1m/s  
     136         ! Then for dx = 2m and dt = 1s => rn_uice = u (1/6th) = 1m/s 
    137137         DO_2D( 1, 1, 1, 1 ) 
    138138            zcoefu = ( REAL(jpiglo+1)*0.5_wp - REAL(ji+nimpp-1) ) / ( REAL(jpiglo+1)*0.5_wp - 1._wp ) 
     
    156156      ! 
    157157      ! 
    158       ! diagnostics: divergence at T points  
     158      ! diagnostics: divergence at T points 
    159159      IF( iom_use('icediv') ) THEN 
    160160         ! 
     
    259259      ENDIF 
    260260      !                             !== set the choice of ice dynamics ==! 
    261       ioptio = 0  
     261      ioptio = 0 
    262262      !      !--- full dynamics                               (rheology + advection + ridging/rafting + correction) 
    263263      IF( ln_dynALL    ) THEN   ;   ioptio = ioptio + 1   ;   nice_dyn = np_dynALL       ;   ENDIF 
     
    292292         ALLOCATE( sf_icbmsk(1)%fnow(jpi,jpj,1) ) 
    293293         IF( sf_icbmsk(1)%ln_tint )   ALLOCATE( sf_icbmsk(1)%fdta(jpi,jpj,1,2) ) 
    294          IF( TRIM(sf_icbmsk(1)%clrootname) == 'NOT USED' ) sf_icbmsk(1)%fnow(:,:,1) = 0._wp   ! not used field  (set to 0)          
     294         IF( TRIM(sf_icbmsk(1)%clrootname) == 'NOT USED' ) sf_icbmsk(1)%fnow(:,:,1) = 0._wp   ! not used field  (set to 0) 
    295295      ELSE 
    296296         icb_mask(:,:) = 0._wp 
    297297      ENDIF 
    298       !                                      !--- other init  
     298      !                                      !--- other init 
    299299      CALL ice_dyn_rdgrft_init          ! set ice ridging/rafting parameters 
    300300      CALL ice_dyn_rhg_init             ! set ice rheology parameters 
     
    307307   !!   Default option         Empty module           NO SI3 sea-ice model 
    308308   !!---------------------------------------------------------------------- 
    309 #endif  
     309#endif 
    310310 
    311311   !!====================================================================== 
Note: See TracChangeset for help on using the changeset viewer.