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.
2009WP/2009Stream3/LeapFrogC (diff) – NEMO

Changes between Version 6 and Version 7 of 2009WP/2009Stream3/LeapFrogC


Ignore:
Timestamp:
2009-06-14T13:55:09+02:00 (15 years ago)
Author:
gm
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • 2009WP/2009Stream3/LeapFrogC

    v6 v7  
    264264 applied the solar heat flux (qsr) as the mean of 2 consecutive time-steps (kt+1/2 and kt-1/2) 
    265265 
    266 '''to be explained''' 
    267  
    268 {{{ 
    269 }}} 
    270  becomes 
    271  
    272 {{{ 
    273 }}} 
    274  
    275  
    276  
    277  
    278  
    279  
    280  
     266{{{ 
     267            IF( nn_chldta ==1 ) THEN                             !*  Variable Chlorophyll 
     268... 
     269               zsi0r = 1.e0 / rn_si0 
     270               zcoef  = ( 1. - rn_abs ) / 3.e0                        ! equi-partition in R-G-B 
     271               ze0(:,:,1) = rn_abs  * qsr(:,:) 
     272               ze1(:,:,1) = zcoef * qsr(:,:) 
     273               ze2(:,:,1) = zcoef * qsr(:,:) 
     274               ze3(:,:,1) = zcoef * qsr(:,:) 
     275               zea(:,:,1) =         qsr(:,:) 
     276... 
     277                  ta(:,:,jk) = ta(:,:,jk) + etot3(:,:,jk) * qsr(:,:) 
     278 
     279         ENDIF 
     280         !                                                ! ------------------------- ! 
     281         IF( ln_qsr_2bd ) THEN                            !  2 band light penetration ! 
     282            !                                             ! ------------------------- ! 
     283            ! 
     284            DO jk = 1, nksr 
     285               DO jj = 2, jpjm1 
     286                  DO ji = fs_2, fs_jpim1   ! vector opt. 
     287                     ta(ji,jj,jk) = ta(ji,jj,jk) + etot3(ji,jj,jk) * qsr(ji,jj) 
     288                  END DO 
     289               END DO 
     290            END DO 
     291            ! 
     292         ENDIF 
     293}}} 
     294 becomes 
     295 
     296{{{ 
     297            IF( nn_chldta ==1 ) THEN                             !*  Variable Chlorophyll 
     298... 
     299               zsi0r = 1.e0 / rn_si0 
     300               zcoef  = ( 1. - rn_abs ) / 3.e0                        ! equi-partition in R-G-B 
     301               zea(:,:,1) =    0.5 * ( qsr_b(:,:) + qsr(:,:) ) 
     302               ze0(:,:,1) = rn_abs * zea(:,:) 
     303               ze1(:,:,1) = zcoef  * zea(:,:) 
     304               ze2(:,:,1) = zcoef  * zea(:,:) 
     305               ze3(:,:,1) = zcoef  * zea(:,:) 
     306... 
     307            ELSE                                                 !*  Constant Chlorophyll 
     308               DO jk = 1, nksr 
     309                  ta(:,:,jk) = ta(:,:,jk) + etot3(:,:,jk) * 0.5 * ( qsr_b(:,:) + qsr(:,:) ) 
     310               END DO 
     311            ENDIF 
     312 
     313         ENDIF 
     314         !                                                ! ------------------------- ! 
     315         IF( ln_qsr_2bd ) THEN                            !  2 band light penetration ! 
     316            !                                             ! ------------------------- ! 
     317            ! 
     318            DO jk = 1, nksr 
     319               ta(:,:,jk) = ta(:,:,jk) + etot3(:,:,jk) * 0.5 * ( qsr_b(:,:) + qsr(:,:) ) 
     320            END DO 
     321            ! 
     322         ENDIF 
     323}}} 
     324 
     325 '''CAUTION 1''' : the case where the light penetration is provided by the bio-model ( i.e. lk_qsr_bio = ln_qsr_bio =.true. is not yet treated. It probably requires changes in p4zopt.F90 and trcopt.F90. Not completely obvious since this depends on the TOP time-stepping strategy. 
    281326 
    282327