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 11410 – NEMO

Changeset 11410


Ignore:
Timestamp:
2019-08-06T16:50:38+02:00 (5 years ago)
Author:
gsamson
Message:

bugfix for negative Chl values in tra_qsr, see #2312

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/TRA/traqsr.F90

    r10425 r11410  
    168168               DO jj = 2, jpjm1                       ! Separation in R-G-B depending of the surface Chl 
    169169                  DO ji = fs_2, fs_jpim1 
    170                      zchl    = sf_chl(1)%fnow(ji,jj,1) 
     170                     zchl    = MIN( 10. , MAX( 0.03, sf_chl(1)%fnow(ji,jj,1) ) ) 
    171171                     zCtot   = 40.6  * zchl**0.459 
    172172                     zze     = 568.2 * zCtot**(-0.746) 
Note: See TracChangeset for help on using the changeset viewer.