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 13540 for NEMO/branches/2020/r12377_ticket2386/src/ICE/icestp.F90 – NEMO

Ignore:
Timestamp:
2020-09-29T12:41:06+02:00 (4 years ago)
Author:
andmirek
Message:

Ticket #2386: update to latest trunk

Location:
NEMO/branches/2020/r12377_ticket2386
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/r12377_ticket2386

    • Property svn:externals
      •  

        old new  
        33^/utils/build/mk@HEAD         mk 
        44^/utils/tools@HEAD            tools 
        5 ^/vendors/AGRIF/dev@HEAD      ext/AGRIF 
         5^/vendors/AGRIF/dev_r12970_AGRIF_CMEMS      ext/AGRIF 
        66^/vendors/FCM@HEAD            ext/FCM 
        77^/vendors/IOIPSL@HEAD         ext/IOIPSL 
        88 
        99# SETTE 
        10 ^/utils/CI/sette@HEAD         sette 
         10^/utils/CI/sette@13507        sette 
  • NEMO/branches/2020/r12377_ticket2386/src/ICE/icestp.F90

    r12511 r13540  
    201201         IF( lrst_ice )                 CALL ice_rst_write( kt )      ! -- Ice restart file  
    202202         ! 
    203          IF( ln_icectl )                CALL ice_ctl( kt )            ! -- alerts in case of model crash 
     203         IF( ln_icectl )                CALL ice_ctl( kt )            ! -- Control checks 
    204204         ! 
    205205      ENDIF   ! End sea-ice time step only 
     
    224224      INTEGER, INTENT(in) :: Kbb, Kmm, Kaa 
    225225      ! 
    226       INTEGER :: ji, jj, ierr 
     226      INTEGER ::   ierr 
    227227      !!---------------------------------------------------------------------- 
    228228      IF(lwp) WRITE(numout,*) 
     
    240240      CALL par_init                ! set some ice run parameters 
    241241      ! 
     242#if defined key_agrif 
     243      CALL Agrif_Declare_Var_ice  !  "      "   "   "      "  Sea ice 
     244#endif 
     245      ! 
    242246      !                                ! Allocate the ice arrays (sbc_ice already allocated in sbc_init) 
    243247      ierr =        ice_alloc        ()      ! ice variables 
     
    248252      IF( ierr /= 0 )   CALL ctl_stop('STOP', 'ice_init : unable to allocate ice arrays') 
    249253      ! 
    250       CALL ice_itd_init                ! ice thickness distribution initialization 
    251       ! 
    252       CALL ice_thd_init                ! set ice thermodynics parameters (clem: important to call it first for melt ponds) 
    253       ! 
    254       !                                ! Initial sea-ice state 
    255       IF( .NOT. ln_rstart ) THEN              ! start from rest: sea-ice deduced from sst 
    256          CALL ice_istate_init 
    257          CALL ice_istate( nit000, Kbb, Kmm, Kaa ) 
    258       ELSE                                    ! start from a restart file 
    259          CALL ice_rst_read( Kbb, Kmm, Kaa ) 
    260       ENDIF 
    261       CALL ice_var_glo2eqv 
    262       CALL ice_var_agg(1) 
    263       ! 
    264       CALL ice_sbc_init                ! set ice-ocean and ice-atm. coupling parameters 
    265       ! 
    266       CALL ice_dyn_init                ! set ice dynamics parameters 
    267       ! 
    268       CALL ice_update_init             ! ice surface boundary condition 
    269       ! 
    270       CALL ice_alb_init                ! ice surface albedo 
    271       ! 
    272       CALL ice_dia_init                ! initialization for diags 
    273       ! 
    274       fr_i  (:,:)   = at_i(:,:)        ! initialisation of sea-ice fraction 
    275       tn_ice(:,:,:) = t_su(:,:,:)      ! initialisation of surface temp for coupled simu 
    276       ! 
    277254      !                                ! set max concentration in both hemispheres 
    278255      WHERE( gphit(:,:) > 0._wp )   ;   rn_amax_2d(:,:) = rn_amax_n  ! NH 
    279256      ELSEWHERE                     ;   rn_amax_2d(:,:) = rn_amax_s  ! SH 
    280257      END WHERE 
    281  
     258      ! 
     259      CALL ice_itd_init                ! ice thickness distribution initialization 
     260      ! 
     261      CALL ice_thd_init                ! set ice thermodynics parameters (clem: important to call it first for melt ponds) 
     262      ! 
     263      !                                ! Initial sea-ice state 
     264      CALL ice_istate_init 
     265      IF ( ln_rstart .OR. nn_iceini_file == 2 ) THEN 
     266         CALL ice_rst_read( Kbb, Kmm, Kaa )         ! start from a restart file 
     267      ELSE 
     268         CALL ice_istate( nit000, Kbb, Kmm, Kaa )   ! start from rest or read a file 
     269      ENDIF 
     270      CALL ice_var_glo2eqv 
     271      CALL ice_var_agg(1) 
     272      ! 
     273      CALL ice_sbc_init                ! set ice-ocean and ice-atm. coupling parameters 
     274      ! 
     275      CALL ice_dyn_init                ! set ice dynamics parameters 
     276      ! 
     277      CALL ice_update_init             ! ice surface boundary condition 
     278      ! 
     279      CALL ice_alb_init                ! ice surface albedo 
     280      ! 
     281      CALL ice_dia_init                ! initialization for diags 
     282      ! 
     283      fr_i  (:,:)   = at_i(:,:)        ! initialisation of sea-ice fraction 
     284      tn_ice(:,:,:) = t_su(:,:,:)      ! initialisation of surface temp for coupled simu 
     285      ! 
    282286      IF( ln_rstart )   CALL iom_close( numrir )  ! close input ice restart file 
    283287      ! 
     
    362366      v_s_b (:,:,:)   = v_s (:,:,:)     ! snow volume 
    363367      sv_i_b(:,:,:)   = sv_i(:,:,:)     ! salt content 
    364       oa_i_b(:,:,:)   = oa_i(:,:,:)     ! areal age content 
    365368      e_s_b (:,:,:,:) = e_s (:,:,:,:)   ! snow thermal energy 
    366369      e_i_b (:,:,:,:) = e_i (:,:,:,:)   ! ice thermal energy 
     
    371374         h_i_b(:,:,:) = 0._wp 
    372375         h_s_b(:,:,:) = 0._wp 
    373       END WHERE 
    374        
    375       WHERE( a_ip(:,:,:) >= epsi20 ) 
    376          h_ip_b(:,:,:) = v_ip(:,:,:) / a_ip(:,:,:)   ! ice pond thickness 
    377       ELSEWHERE 
    378          h_ip_b(:,:,:) = 0._wp 
    379376      END WHERE 
    380377      ! 
     
    420417      hfx_res(:,:) = 0._wp   ;   hfx_sub(:,:) = 0._wp 
    421418      hfx_spr(:,:) = 0._wp   ;   hfx_dif(:,:) = 0._wp 
    422       hfx_err_rem(:,:) = 0._wp 
    423419      hfx_err_dif(:,:) = 0._wp 
    424420      wfx_err_sub(:,:) = 0._wp 
     
    441437      diag_trp_ei(:,:) = 0._wp   ;   diag_trp_es(:,:) = 0._wp 
    442438      diag_trp_sv(:,:) = 0._wp 
    443  
     439       
    444440   END SUBROUTINE diag_set0 
    445441 
Note: See TracChangeset for help on using the changeset viewer.