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 1601 for trunk/NEMO/OPA_SRC/TRA/traqsr.F90 – NEMO

Ignore:
Timestamp:
2009-08-11T12:09:19+02:00 (15 years ago)
Author:
ctlod
Message:

Doctor naming of OPA namelist variables , see ticket: #526

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/TRA/traqsr.F90

    r1460 r1601  
    3333   PUBLIC   tra_qsr        ! routine called by step.F90 (ln_traqsr=T) 
    3434 
    35    !                                           !!* Namelist namqsr: penetrative solar radiation 
     35   !                                           !!* Namelist namtra_qsr: penetrative solar radiation 
    3636   LOGICAL , PUBLIC ::   ln_traqsr  = .TRUE.    !: light absorption (qsr) flag 
    3737   LOGICAL , PUBLIC ::   ln_qsr_rgb = .FALSE.   !: Red-Green-Blue light absorption flag   
     
    220220      !! ** Method  :   The profile of solar radiation within the ocean is set 
    221221      !!      from two length scale of penetration (rn_si0,rn_si1) and a ratio 
    222       !!      (rn_abs). These parameters are read in the namqsr namelist. The 
     222      !!      (rn_abs). These parameters are read in the namtra_qsr namelist. The 
    223223      !!      default values correspond to clear water (type I in Jerlov'  
    224224      !!      (1968) classification. 
     
    240240      CHARACTER(len=100) ::   cn_dir   ! Root directory for location of ssr files 
    241241      TYPE(FLD_N)        ::   sn_chl   ! informations about the chlorofyl field to be read 
    242       NAMELIST/namqsr/  sn_chl, cn_dir, ln_traqsr, ln_qsr_rgb, ln_qsr_2bd, ln_qsr_bio,   & 
    243          &              nn_chldta, rn_abs, rn_si0, rn_si1, rn_si2 
     242      NAMELIST/namtra_qsr/  sn_chl, cn_dir, ln_traqsr, ln_qsr_rgb, ln_qsr_2bd, ln_qsr_bio,   & 
     243         &                  nn_chldta, rn_abs, rn_si0, rn_si1, rn_si2 
    244244      !!---------------------------------------------------------------------- 
    245245 
     
    250250      sn_chl = FLD_N( 'chlorophyll' ,    -1     ,  'CHLA'    ,  .true.     , .true.  ,   'yearly'  , ''       , ''         ) 
    251251      ! 
    252       REWIND( numnam )            ! Read Namelist namqsr : ratio and length of penetration 
    253       READ  ( numnam, namqsr ) 
     252      REWIND( numnam )            ! Read Namelist namtra_qsr : ratio and length of penetration 
     253      READ  ( numnam, namtra_qsr ) 
    254254      ! 
    255255      IF(lwp) THEN                ! control print 
     
    257257         WRITE(numout,*) 'tra_qsr_init : penetration of the surface solar radiation' 
    258258         WRITE(numout,*) '~~~~~~~~~~~~' 
    259          WRITE(numout,*) '    Namelist namqsr : set the parameter of penetration' 
    260          WRITE(numout,*) '        Light penetration (T) or not (F)         ln_traqsr  = ', ln_traqsr 
    261          WRITE(numout,*) '        RGB (Red-Green-Blue) light penetration   ln_qsr_rgb = ', ln_qsr_rgb 
    262          WRITE(numout,*) '        2 band               light penetration   ln_qsr_2bd = ', ln_qsr_2bd 
    263          WRITE(numout,*) '        bio-model            light penetration   ln_qsr_bio = ', ln_qsr_bio 
    264          WRITE(numout,*) '        RGB : Chl data (=1) or cst value (=0)    nn_chldta  = ', nn_chldta 
    265          WRITE(numout,*) '        RGB & 2 bands: fraction of light (rn_si1)    rn_abs = ', rn_abs 
    266          WRITE(numout,*) '        RGB & 2 bands: shortess depth of extinction  rn_si0 = ', rn_si0 
    267          WRITE(numout,*) '        2 bands: longest depth of extinction         rn_si1 = ', rn_si1 
    268          WRITE(numout,*) '        3 bands: longest depth of extinction         rn_si2 = ', rn_si2 
     259         WRITE(numout,*) '   Namelist namtra_qsr : set the parameter of penetration' 
     260         WRITE(numout,*) '      Light penetration (T) or not (F)         ln_traqsr  = ', ln_traqsr 
     261         WRITE(numout,*) '      RGB (Red-Green-Blue) light penetration   ln_qsr_rgb = ', ln_qsr_rgb 
     262         WRITE(numout,*) '      2 band               light penetration   ln_qsr_2bd = ', ln_qsr_2bd 
     263         WRITE(numout,*) '      bio-model            light penetration   ln_qsr_bio = ', ln_qsr_bio 
     264         WRITE(numout,*) '      RGB : Chl data (=1) or cst value (=0)    nn_chldta  = ', nn_chldta 
     265         WRITE(numout,*) '      RGB & 2 bands: fraction of light (rn_si1)    rn_abs = ', rn_abs 
     266         WRITE(numout,*) '      RGB & 2 bands: shortess depth of extinction  rn_si0 = ', rn_si0 
     267         WRITE(numout,*) '      2 bands: longest depth of extinction         rn_si1 = ', rn_si1 
     268         WRITE(numout,*) '      3 bands: longest depth of extinction         rn_si2 = ', rn_si2 
    269269      ENDIF 
    270270 
    271271      IF( ln_traqsr ) THEN     ! control consistency 
    272272         !                       
    273          IF( .NOT. lk_qsr_bio  ) THEN  
     273         IF( .NOT.lk_qsr_bio .AND. ln_qsr_bio )   THEN 
     274            CALL ctl_warn( 'No bio model : force ln_qsr_bio = FALSE ' ) 
    274275            ln_qsr_bio = .FALSE. 
    275             CALL ctl_warn( 'No bio model ;  force bio-model light penetration ln_qsr_bio  = FALSE ' ) 
    276276         ENDIF 
    277277         ! 
     
    286286            ln_qsr_2bd = .FALSE. 
    287287            ln_qsr_bio = .FALSE. 
    288             CALL ctl_warn( '          Choose ONE type of light penetration in namelist namqsr',   & 
     288            CALL ctl_warn( '          Choose ONE type of light penetration in namelist namtra_qsr',   & 
    289289           &               ' otherwise, we force the model to run with RGB light penetration' ) 
    290290         ENDIF 
     
    335335               !                                        ! fill sf_chl with sn_chl and control print 
    336336               CALL fld_fill( sf_chl, (/ sn_chl /), cn_dir, 'tra_qsr_init',   & 
    337                   &                                         'Solar penetration function of read chlorophyll', 'namqsr' ) 
     337                  &                                         'Solar penetration function of read chlorophyll', 'namtra_qsr' ) 
    338338               ! 
    339339            ELSE                                !* constant Chl : compute once for all the distribution of light (etot3) 
Note: See TracChangeset for help on using the changeset viewer.