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 165 for trunk/NEMO/OPA_SRC – NEMO

Changeset 165 for trunk/NEMO/OPA_SRC


Ignore:
Timestamp:
2004-11-03T15:49:53+01:00 (20 years ago)
Author:
opalod
Message:

CT + CL : UPDATE105 : Add the subroutine albedo_init() in the albedo.F90 module to read the namelist namalb to set albedo parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/SBC/albedo.F90

    r152 r165  
    2626                         ! and in flxblk.F90 in forced 
    2727   !! * Module variables 
     28   INTEGER  ::             &  !: nameos : ocean physical parameters 
     29      albd_init = 0           !: control flag for initialization 
     30 
    2831   REAL(wp)  ::            &  ! constant values 
    2932      zzero   = 0.e0    ,  & 
     
    101104      !!--------------------------------------------------------------------- 
    102105       
     106      ! initialization  
     107      IF( albd_init == 0 )   CALL albedo_init 
     108 
    103109      !-------------------------                                                              
    104110      !  Computation of  zficeth 
     
    224230 
    225231#endif 
     232 
     233   SUBROUTINE albedo_init 
     234      !!---------------------------------------------------------------------- 
     235      !!                 ***  ROUTINE albedo_init  *** 
     236      !! 
     237      !! ** Purpose :   initializations for the albedo parameters 
     238      !! 
     239      !! ** Method  :   Read the namelist namalb 
     240      !! 
     241      !! ** Action  :   
     242      !! 
     243      !! 
     244      !! History : 
     245      !!   9.0  !  04-11  (C. Talandier)  Original code 
     246      !!---------------------------------------------------------------------- 
     247      NAMELIST/namalb/ cgren, albice, alphd, alphdi, alphc 
     248      !!---------------------------------------------------------------------- 
     249      !!  OPA 9.0, LODYC-IPSL (2004) 
     250      !!---------------------------------------------------------------------- 
     251 
     252      ! set the initialization flag to 1 
     253      albd_init = 1           ! indicate that the initialization has been done 
     254 
     255      ! Read Namelist namalb : albedo parameters 
     256      REWIND( numnam ) 
     257      READ  ( numnam, namalb ) 
     258 
     259      ! Control print 
     260      IF(lwp) THEN 
     261         WRITE(numout,*) 
     262         WRITE(numout,*) 'albedo_init : albedo ' 
     263         WRITE(numout,*) '~~~~~~~~~~~' 
     264         WRITE(numout,*) '          Namelist namalb : set albedo parameters' 
     265         WRITE(numout,*) 
     266         WRITE(numout,*) '             correction of the snow or ice albedo to take into account cgren = ', cgren 
     267         WRITE(numout,*) '             albedo of melting ice in the arctic and antarctic        albice = ', albice 
     268         WRITE(numout,*) '             coefficients for linear                                   alphd = ', alphd 
     269         WRITE(numout,*) '             interpolation used to compute albedo                     alphdi = ', alphdi 
     270         WRITE(numout,*) '             between two extremes values (Pyane, 1972)                 alphc = ', alphc 
     271         WRITE(numout,*) 
     272      ENDIF 
     273 
     274   END SUBROUTINE albedo_init 
    226275   !!====================================================================== 
    227276END MODULE albedo 
Note: See TracChangeset for help on using the changeset viewer.