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 7060 for branches/2016/dev_v3_6_STABLE_r6506_AGRIF_LIM3/NEMOGCM/NEMO/LIM_SRC_3 – NEMO

Ignore:
Timestamp:
2016-10-20T16:16:29+02:00 (8 years ago)
Author:
clem
Message:

update agrif+lim3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_v3_6_STABLE_r6506_AGRIF_LIM3/NEMOGCM/NEMO/LIM_SRC_3/limistate.F90

    r6853 r7060  
    108108      ! 1) Read namelist 
    109109      !-------------------------------------------------------------------- 
    110  
    111       CALL lim_istate_init     !  reading the initials parameters of the ice 
    112  
    113       ! surface temperature 
    114       DO jl = 1, jpl ! loop over categories 
     110      CALL lim_istate_init 
     111 
     112      ! init surface temperature 
     113      DO jl = 1, jpl 
    115114         t_su  (:,:,jl) = rt0 * tmask(:,:,1) 
    116115         tn_ice(:,:,jl) = rt0 * tmask(:,:,1) 
    117116      END DO 
    118117 
    119       ! basal temperature (considered at freezing point) 
     118      ! init basal temperature (considered at freezing point) 
    120119      CALL eos_fzp( sss_m(:,:), t_bo(:,:) ) 
    121120      t_bo(:,:) = ( t_bo(:,:) + rt0 ) * tmask(:,:,1)  
    122121 
    123122 
     123      !-------------------------------------------------------------------- 
     124      ! 2) Initialization of sea ice state variables 
     125      !-------------------------------------------------------------------- 
    124126      IF( ln_limini ) THEN 
    125127 
    126          !-------------------------------------------------------------------- 
    127          ! 2) Basal temperature, ice mask and hemispheric index 
    128          !-------------------------------------------------------------------- 
    129  
    130          DO jj = 1, jpj                                       ! ice if sst <= t-freez + ttest 
    131             DO ji = 1, jpi 
    132                IF( ( sst_m(ji,jj)  - ( t_bo(ji,jj) - rt0 ) ) * tmask(ji,jj,1) >= rn_thres_sst * tmask(ji,jj,1) ) THEN 
    133                   zswitch(ji,jj) = 0._wp                     ! no ice 
    134                ELSE                                                                                    
    135                   zswitch(ji,jj) = 1._wp * tmask(ji,jj,1)    !    ice 
    136                ENDIF 
    137             END DO 
    138          END DO 
    139  
    140          !-------------------------------------------------------------------- 
    141          ! 3) Initialization of sea ice state variables 
    142          !-------------------------------------------------------------------- 
    143128         IF( ln_limini_file )THEN 
    144129 
     
    150135            zsm_i_ini(:,:)  = si(jp_smi)%fnow(:,:,1) 
    151136 
     137            WHERE( zat_i_ini(:,:) > 0._wp ) ; zswitch(:,:) = tmask(:,:,1)  
     138            ELSEWHERE                       ; zswitch(:,:) = 0._wp 
     139            END WHERE 
     140 
    152141         ELSE ! ln_limini_file = F 
     142 
     143            !-------------------------------------------------------------------- 
     144            ! 3) Basal temperature, ice mask 
     145            !-------------------------------------------------------------------- 
     146            ! no ice if sst <= t-freez + ttest 
     147            WHERE( ( sst_m(:,:) - (t_bo(:,:) - rt0) ) * tmask(:,:,1) >= rn_thres_sst ) ; zswitch(:,:) = 0._wp  
     148            ELSEWHERE                                                                  ; zswitch(:,:) = tmask(:,:,1) 
     149            END WHERE 
    153150 
    154151            !----------------------------- 
     
    457454!!      ! Output the initial state and forcings 
    458455!!      CALL dia_wri_state( 'output.init', nit000 ) 
    459 !!! 
    460        
     456!!!       
     457 
    461458      CALL wrk_dealloc( jpi, jpj, jpl, zh_i_ini,  za_i_ini ) 
    462459      CALL wrk_dealloc( jpi, jpj,      zht_i_ini, zat_i_ini, zvt_i_ini, zts_u_ini, zht_s_ini, zsm_i_ini, ztm_i_ini ) 
Note: See TracChangeset for help on using the changeset viewer.