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

Ignore:
Timestamp:
2009-05-23T09:54:31+02:00 (15 years ago)
Author:
cetlod
Message:

use the R-G-B ligth penetration as default parameterization, see ticket:341

File:
1 edited

Legend:

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

    r1454 r1455  
    281281         IF( ln_qsr_bio  )   ioptio = ioptio + 1 
    282282         ! 
    283          IF( ioptio > 1 ) THEN 
    284             ln_qsr_rgb = .FALSE. 
     283         IF( ioptio != 1 ) THEN 
     284            ln_qsr_rgb = .TRUE. 
     285            nn_chldta  = 0 
    285286            ln_qsr_2bd = .FALSE. 
    286287            ln_qsr_bio = .FALSE. 
    287288            CALL ctl_warn( '          Choose ONE type of light penetration in namelist namqsr',   & 
    288            &               ' otherwise, we force the model to run without light penetration' ) 
    289          ENDIF 
    290          IF( ioptio == 0 .OR. ioptio > 1     )   nqsr =  1 
    291          IF( ln_qsr_rgb .AND. nn_chldta == 0 )   nqsr =  2 
    292          IF( ln_qsr_rgb .AND. nn_chldta == 1 )   nqsr =  3 
    293          IF( ln_qsr_2bd                      )   nqsr =  4 
    294          IF( ln_qsr_bio                      )   nqsr =  5 
     289           &               ' otherwise, we force the model to run with RGB light penetration' ) 
     290         ENDIF 
     291         ! 
     292         IF( ln_qsr_rgb .AND. nn_chldta == 0 )   nqsr =  1  
     293         IF( ln_qsr_rgb .AND. nn_chldta == 1 )   nqsr =  2 
     294         IF( ln_qsr_2bd                      )   nqsr =  3 
     295         IF( ln_qsr_bio                      )   nqsr =  4 
    295296         ! 
    296297         IF(lwp) THEN                   ! Print the choice 
    297298            WRITE(numout,*) 
    298             IF( nqsr ==  1 )   WRITE(numout,*) '         No light penetration ' 
    299             IF( nqsr ==  2 )   WRITE(numout,*) '         R-G-B  light penetration - Constant Chlorophyll' 
    300             IF( nqsr ==  3 )   WRITE(numout,*) '         R-G-B  light penetration - Chl data ' 
    301             IF( nqsr ==  4 )   WRITE(numout,*) '         2 band light penetration' 
    302             IF( nqsr ==  5 )   WRITE(numout,*) '         bio-model light penetration' 
     299            IF( nqsr ==  1 )   WRITE(numout,*) '         R-G-B  light penetration - Constant Chlorophyll' 
     300            IF( nqsr ==  2 )   WRITE(numout,*) '         R-G-B  light penetration - Chl data ' 
     301            IF( nqsr ==  3 )   WRITE(numout,*) '         2 band light penetration' 
     302            IF( nqsr ==  4 )   WRITE(numout,*) '         bio-model light penetration' 
    303303         ENDIF 
    304304         ! 
Note: See TracChangeset for help on using the changeset viewer.