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

Ignore:
Timestamp:
2009-05-13T16:35:02+02:00 (15 years ago)
Author:
cetlod
Message:

add the use of bio-optical retroaction on dynamics when coupling with PISCES, see ticket:428

File:
1 edited

Legend:

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

    r1152 r1445  
    2323 
    2424   !! * Shared module variables 
    25    LOGICAL, PUBLIC ::   ln_traqsr = .TRUE.   !: qsr flag (Default=T) 
    26  
    27    !! * Module variables 
    28    REAL(wp), PUBLIC ::  & !!! * penetrative solar radiation namelist * 
    29       xsi1 = 0.35_wp    ! first depth of extinction  
    30    LOGICAL , PUBLIC ::   ln_qsr_sms = .false. ! flag to use or not the biological fluxes for light 
     25   LOGICAL , PUBLIC ::   ln_traqsr  = .TRUE.    !: light absorption (qsr) flag 
     26   LOGICAL , PUBLIC ::   ln_qsr_bio = .FALSE.   !: bio-optical retroaction 
     27   REAL(wp), PUBLIC ::   rn_abs     = 0.58_wp   !: fraction absorbed in the very near surface (RGB & 2 bands) 
     28   REAL(wp), PUBLIC ::   rn_si0     = 0.35_wp   !: very near surface depth of extinction      (RGB & 2 bands) 
     29   REAL(wp), PUBLIC ::   rn_si2     = 61.8_wp   !: deepest depth of extinction (blue & 0.01 mg.m-3)     (RGB) 
    3130 
    3231 
     
    5554      !!---------------------------------------------------------------------- 
    5655      !! * Local declarations 
    57  
    58       NAMELIST/namqsr/ ln_traqsr, xsi1 
     56      NAMELIST/namqsr/ ln_qsr_bio, rn_abs, rn_si0, rn_si2 
    5957      !!---------------------------------------------------------------------- 
    6058 
     
    6462      READ   ( numnam, namqsr ) 
    6563 
     64      ln_qsr_bio = .FALSE. ! Offline mode : No retroaction on dynamics  
    6665      ! Parameter control and print 
    6766      ! --------------------------- 
    68       IF( ln_traqsr  ) THEN 
    69         IF ( lwp ) THEN 
     67      IF(lwp) THEN                ! control print 
    7068         WRITE(numout,*) 
    7169         WRITE(numout,*) 'tra_qsr_init : penetration of the surface solar radiation' 
    7270         WRITE(numout,*) '~~~~~~~~~~~~' 
    7371         WRITE(numout,*) '    Namelist namqsr : set the parameter of penetration' 
    74          WRITE(numout,*) '        first depth of extinction        xsi1        = ',xsi1 
    75          WRITE(numout,*) '     Biological fluxes for light(Y/N) ln_qsr_sms  = ',ln_qsr_sms 
    76          WRITE(numout,*) ' ' 
    77         END IF 
    78       ELSE 
    79         IF ( lwp ) THEN 
    80          WRITE(numout,*) 
    81          WRITE(numout,*) 'tra_qsr_init : NO solar flux penetration' 
    82          WRITE(numout,*) '~~~~~~~~~~~~' 
    83         END IF 
     72         WRITE(numout,*) '        bio-model            light penetration   ln_qsr_bio = ', ln_qsr_bio 
     73         WRITE(numout,*) '        RGB & 2 bands: fraction of light (rn_si1)    rn_abs = ', rn_abs 
     74         WRITE(numout,*) '        RGB & 2 bands: shortess depth of extinction  rn_si0 = ', rn_si0 
     75         WRITE(numout,*) '        3 bands: longest depth of extinction         rn_si2 = ', rn_si2 
    8476      ENDIF 
    85  
    86       IF( xsi1 < 0.e0  ) & 
    87          CALL ctl_stop( '              0<xsi1 not satisfied' ) 
    88  
     77       
    8978 
    9079   END SUBROUTINE tra_qsr_init 
Note: See TracChangeset for help on using the changeset viewer.