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

Ignore:
Timestamp:
2017-09-06T19:02:43+02:00 (7 years ago)
Author:
clem
Message:

changes in style - part5 - start changing init routines

File:
1 edited

Legend:

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

    r8498 r8505  
    1313   !!   alb_init      : initialisation of albedo computation 
    1414   !!---------------------------------------------------------------------- 
    15    USE ice     , ONLY : jpl   ! number of ice category 
     15   USE ice, ONLY: jpl ! sea-ice: number of categories 
    1616   USE phycst         ! physical constants 
    1717   ! 
     
    2323   PRIVATE 
    2424 
    25    PUBLIC   ice_alb   ! routine called in iceforcing.F90 and iceupdate.F90 
     25   PUBLIC   ice_alb_init   ! called in icestp 
     26   PUBLIC   ice_alb        ! called in iceforcing.F90 and iceupdate.F90 
    2627 
    2728   REAL(wp), PUBLIC, PARAMETER ::   rn_alb_oce = 0.066   !: ocean or lead albedo (Pegau and Paulson, Ann. Glac. 2001) 
    2829 
    29    INTEGER  ::   albd_init = 0       ! control flag for initialization   
    3030   REAL(wp) , PARAMETER ::   rc1    = 0.05    ! snow thickness (only for nn_ice_alb=0) 
    3131   REAL(wp) , PARAMETER ::   rc2    = 0.10    !  "        " 
     
    3333   REAL(wp) , PARAMETER ::   r1_c1 = 1. / rc1 
    3434   REAL(wp) , PARAMETER ::   r1_c2 = 1. / rc2 
    35   
    36    !                             !!* namelist namsbc_alb * 
    37    INTEGER  ::   nn_ice_alb 
    38    REAL(wp) ::   rn_alb_sdry, rn_alb_smlt, rn_alb_idry, rn_alb_imlt, rn_alb_dpnd 
     35   ! 
     36   ! ** albedo namelist (namicealb) 
     37   INTEGER  ::   nn_ice_alb       ! type of albedo scheme: 0: Shine & Henderson-Sellers (JGR 1985) 
     38   !                                      !                         1: "home made" based on Brandt et al. (JClim 2005) 
     39   !                                      !                             and Grenfell & Perovich (JGR 2004) 
     40   !                                      !                         2: Same as 1 but with melt ponds 
     41   REAL(wp) ::   rn_alb_sdry      ! dry snow albedo 
     42   REAL(wp) ::   rn_alb_smlt      ! melting snow albedo 
     43   REAL(wp) ::   rn_alb_idry      ! dry ice albedo 
     44   REAL(wp) ::   rn_alb_imlt      ! bare puddled ice albedo 
     45   REAL(wp) ::   rn_alb_dpnd      ! ponded ice albedo 
    3946 
    4047   !!---------------------------------------------------------------------- 
     
    102109      REAL(wp), DIMENSION(jpi,jpj,jpl) ::   zafrac_pnd      ! relative ice fraction (effective) 
    103110      !!--------------------------------------------------------------------- 
    104  
    105       IF( albd_init == 0 )   CALL alb_init      ! initialization  
    106111 
    107112      !----------------------------------------------------- 
     
    299304 
    300305 
    301    SUBROUTINE alb_init 
     306   SUBROUTINE ice_alb_init 
    302307      !!---------------------------------------------------------------------- 
    303308      !!                 ***  ROUTINE alb_init  *** 
     
    311316      NAMELIST/namicealb/ nn_ice_alb, rn_alb_sdry, rn_alb_smlt, rn_alb_idry, rn_alb_imlt, rn_alb_dpnd 
    312317      !!---------------------------------------------------------------------- 
    313       ! 
    314       albd_init = 1                     ! indicate that the initialization has been done 
    315318      ! 
    316319      REWIND( numnam_ice_ref )              ! Namelist namicealb in reference namelist : Albedo parameters 
     
    336339      ENDIF 
    337340      ! 
    338    END SUBROUTINE alb_init 
     341   END SUBROUTINE ice_alb_init 
    339342 
    340343#else 
Note: See TracChangeset for help on using the changeset viewer.