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 8498 for branches/2017/dev_r8183_ICEMODEL/NEMOGCM/NEMO/LIM_SRC_3/icestp.F90 – NEMO

Ignore:
Timestamp:
2017-09-05T19:53:41+02:00 (7 years ago)
Author:
clem
Message:

changes in style - part2 -

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_r8183_ICEMODEL/NEMOGCM/NEMO/LIM_SRC_3/icestp.F90

    r8486 r8498  
    122122         !                                   !-----------------------! 
    123123         ! 
    124          kt_ice = kt       ! Ice model time step 
     124         kt_ice = kt                              ! -- Ice model time step 
    125125         ! 
    126126# if defined key_agrif 
    127127         IF( .NOT. Agrif_Root() )  lim_nbstep = MOD( lim_nbstep, Agrif_irhot() * Agrif_Parent(nn_fsbc) / nn_fsbc ) + 1 
    128128# endif 
    129  
    130          !                 ! mean surface ocean current at ice velocity point 
    131          u_oce(:,:) = ssu_m(:,:) * umask(:,:,1) 
    132          v_oce(:,:) = ssv_m(:,:) * vmask(:,:,1) 
    133 !!gm the umask, vmask above is useless as ssu_m, ssv_m are build from masked un,vn (used t be here for B-grid sea-ice) 
    134  
    135          !                 ! masked sea surface freezing temperature [Kelvin] (set to rt0 over land) 
    136          CALL eos_fzp( sss_m(:,:) , t_bo(:,:) ) 
     129         u_oce(:,:) = ssu_m(:,:)                  ! -- mean surface ocean current 
     130         v_oce(:,:) = ssv_m(:,:) 
     131         ! 
     132         CALL eos_fzp( sss_m(:,:) , t_bo(:,:) )   ! -- freezing temperature [Kelvin] (set to rt0 over land) 
    137133         t_bo(:,:) = ( t_bo(:,:) + rt0 ) * tmask(:,:,1) + rt0 * ( 1._wp - tmask(:,:,1) ) 
    138134         ! 
    139          CALL ice_bef      ! Store previous ice values 
     135         CALL store_fields                        ! -- Store now ice values 
    140136         ! 
    141137         !------------------------------------------------! 
     
    179175         CALL ice_var_glo2eqv            ! ht_i and ht_s for ice albedo calculation 
    180176         CALL ice_var_agg(1)             ! at_i for coupling  
    181          CALL ice_bef                    ! Store previous ice values 
     177         CALL store_fields               ! Store now ice values 
    182178 
    183179         !------------------------------------------------------! 
     
    223219!!         IF( .NOT. Agrif_Root() )   CALL Agrif_ParentGrid_To_ChildGrid() 
    224220!!# endif 
    225          IF( ln_limdiahsb )           CALL ice_dia( kt )        ! -- Diagnostics and outputs  
    226          ! 
    227                                       CALL ice_wri( 1 )         ! -- Ice outputs  
     221         IF( ln_limdiahsb )         CALL ice_dia( kt )        ! -- Diagnostics and outputs  
     222         ! 
     223                                    CALL ice_wri( 1 )         ! -- Ice outputs  
    228224         ! 
    229225         IF( kt == nit000 .AND. ln_rstart )   &                !!gm  I don't understand the ln_rstart, if needed, add a comment, please 
    230             &                         CALL iom_close( numrir )  ! close input ice restart file 
    231          ! 
    232          IF( lrst_ice )               CALL ice_rst_write( kt )  ! -- Ice restart file  
    233          ! 
    234          IF( ln_limctl )              CALL ice_ctl( kt )        ! alerts in case of model crash 
     226            &                       CALL iom_close( numrir )  ! close input ice restart file 
     227         ! 
     228         IF( lrst_ice )             CALL ice_rst_write( kt )  ! -- Ice restart file  
     229         ! 
     230         IF( ln_limctl )            CALL ice_ctl( kt )        ! alerts in case of model crash 
    235231         ! 
    236232      ENDIF   ! End sea-ice time step only 
     
    241237      ! Update surface ocean stresses (only in ice-dynamic case) otherwise the atm.-ocean stresses are used everywhere 
    242238      !    using before instantaneous surf. currents 
    243       IF( ln_limdyn )                 CALL ice_update_tau( kt, ub(:,:,1), vb(:,:,1) ) 
     239      IF( ln_limdyn )               CALL ice_update_tau( kt, ub(:,:,1), vb(:,:,1) ) 
    244240!!gm   remark, the ocean-ice stress is not saved in ice diag call above .....  find a solution!!! 
    245241      ! 
     
    476472 
    477473 
    478    SUBROUTINE ice_bef 
    479       !!---------------------------------------------------------------------- 
    480       !!                  ***  ROUTINE ice_bef  *** 
     474   SUBROUTINE store_fields 
     475      !!---------------------------------------------------------------------- 
     476      !!                  ***  ROUTINE store_fields  *** 
    481477      !! 
    482478      !! ** purpose :  store ice variables at "before" time step 
     
    525521      CALL lbc_lnk_multi( at_i_b, 'T', 1., u_ice_b , 'U', -1., v_ice_b , 'V', -1. ) 
    526522      ! 
    527    END SUBROUTINE ice_bef 
     523   END SUBROUTINE store_fields 
    528524 
    529525 
     
    570566            ! 
    571567            afx_tot(ji,jj) = 0._wp   ; 
    572             afx_dyn(ji,jj) = 0._wp   ;   afx_thd(ji,jj) = 0._wp 
    573568            ! 
    574569            diag_heat(ji,jj) = 0._wp ;   diag_smvi(ji,jj) = 0._wp 
Note: See TracChangeset for help on using the changeset viewer.