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/OPA_SRC/trc_oce.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/OPA_SRC/trc_oce.F90

    r1423 r1445  
    1010   !!   trc_oce_rgb : tabulated attenuation coefficients for RGB light penetration          
    1111   !!---------------------------------------------------------------------- 
     12   USE par_oce 
    1213   USE in_out_manager  ! I/O manager 
    1314   USE dom_oce         ! ocean space and time domain 
    1415 
    15 #if defined key_top && defined key_pisces 
    16    !!---------------------------------------------------------------------- 
    17    !!   'key_top'   &   'key_pisces'                       PISCES bio-model           
    18    !!---------------------------------------------------------------------- 
    19    USE sms_pisces , ONLY :   etot3    =>   etot3   !:  bio-model light absorption 
    20  
    2116   IMPLICIT NONE 
    2217   PRIVATE 
    2318 
    24    PUBLIC   trc_oce_rgb   ! routine called by p4zopt.F90 
    25     
    26    LOGICAL, PUBLIC, PARAMETER ::   lk_qsr_bio = .TRUE.   !: bio-model light absorption flag 
    27     
    28 #else 
    29    !!---------------------------------------------------------------------- 
    30    !! Default option                          No bio-model light absorption       
    31    !!---------------------------------------------------------------------- 
    32    USE par_oce 
    33  
    34    IMPLICIT NONE 
    35    PRIVATE 
    36  
    37    PUBLIC   trc_oce_rgb   ! routine called by traqsr.F90 
    38     
    39    LOGICAL, PUBLIC, PARAMETER ::   lk_qsr_bio = .FALSE.   !: bio-model light absorption flag 
     19   PUBLIC   trc_oce_rgb        ! routine called by traqsr.F90 
     20   PUBLIC   trc_oce_rgb_read   ! routine called by traqsr.F90 
     21   PUBLIC   trc_oce_ext_lev    ! function called by traqsr.F90 at least 
    4022    
    4123   REAL(wp), PUBLIC , DIMENSION(jpi,jpj,jpk) ::   etot3   !: light absortion coefficient 
     24 
     25#if defined key_top && defined key_pisces 
     26   !!---------------------------------------------------------------------- 
     27   !!   'key_top'   &   'key_pisces'                       PISCES bio-model           
     28   !!---------------------------------------------------------------------- 
     29   LOGICAL, PUBLIC, PARAMETER ::   lk_qsr_bio = .TRUE.   !: bio-model light absorption flag 
     30#else 
     31   !!---------------------------------------------------------------------- 
     32   !! Default option                          No bio-model light absorption       
     33   !!---------------------------------------------------------------------- 
     34   LOGICAL, PUBLIC, PARAMETER ::   lk_qsr_bio = .FALSE.   !: bio-model light absorption flag 
    4235#endif 
    43  
    44    PUBLIC   trc_oce_ext_lev    ! function called by traqsr.F90 at least 
    45  
    46    INTEGER, PUBLIC ::   nksr   ! levels below which the light cannot penetrate ( depth larger than 391 m) 
    47  
    48    REAL(wp), DIMENSION(3,61), PUBLIC ::   rkrgb   !: tabulated attenuation coefficients for RGB absorption 
    4936 
    5037   !! * Substitutions 
     
    5239   !!---------------------------------------------------------------------- 
    5340   !! NEMO/OPA 3.2 , LOCEAN-IPSL (2009)  
    54    !! $Id:$  
     41   !! $Id$  
    5542   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt)  
    5643   !!---------------------------------------------------------------------- 
     
    7259      !! Reference  : Lengaigne et al. 2007, Clim. Dyn., V28, 5, 503-516. 
    7360      !!---------------------------------------------------------------------- 
    74       REAL(wp), DIMENSION(3,61), INTENT(inout) ::   prgb   ! tabulated attenuation coefficient 
     61      REAL(wp), DIMENSION(3,61), INTENT(out) ::   prgb   ! tabulated attenuation coefficient 
    7562      !! 
    7663      INTEGER  ::   jc     ! dummy loop indice 
     
    175162      !!                          attenuation coefficient (from JM Andre) 
    176163      !!---------------------------------------------------------------------- 
    177       REAL(wp), DIMENSION(3,61), INTENT(inout) ::   prgb   ! tabulated attenuation coefficient 
     164      REAL(wp), DIMENSION(3,61), INTENT(out) ::   prgb   ! tabulated attenuation coefficient 
    178165      !! 
    179166      INTEGER  ::   jchl, jband   ! dummy loop indices 
    180167      INTEGER  ::   numlight 
    181       REAL(wp) ::   ztoto 
     168      REAL(wp) ::   zchl 
    182169      CHARACTER(LEN=20) :: clname 
    183170      !!---------------------------------------------------------------------- 
     
    186173      CALL ctlopn( numlight, clname, 'OLD', 'FORMATTED', 'SEQUENTIAL', 1, numout, .TRUE., 1 ) 
    187174      DO jchl = 1, 61 
    188          READ(numlight,*) ztoto, ( prgb(jband,jchl), jband=1,3 ) 
     175         READ(numlight,*) zchl, ( prgb(jband,jchl), jband=1,3 ) 
    189176      END DO 
    190177      CLOSE( numlight ) 
Note: See TracChangeset for help on using the changeset viewer.