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

Changeset 15685


Ignore:
Timestamp:
2022-02-02T17:14:34+01:00 (2 years ago)
Author:
dancopsey
Message:

Change chlorophyll ancil to be in the same units

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/NEMO_4.0.4_change_chlorophyll/src/OCE/TRA/traqsr.F90

    r15678 r15685  
    169169               DO jj = 2, jpjm1                       ! Separation in R-G-B depending of the surface Chl 
    170170                  DO ji = fs_2, fs_jpim1 
    171                      zchl    = MIN( 10. , MAX( 0.03, sf_chl(1)%fnow(ji,jj,1) ) ) 
    172                      zCtot   = 40.6  * zchl**0.459 
    173                      zze     = 568.2 * zCtot**(-0.746) 
    174                      IF( zze > 102. ) zze = 200.0 * zCtot**(-0.293) 
    175                      zpsi    = gdepw_n(ji,jj,jk) / zze 
     171 
     172                     ! Commenting out this bit of code as I want to load in chlorophyll concentrations 
     173                     ! with the same units as rn_chl_conc 
     174                     ! zchl    = MIN( 10. , MAX( 0.03, sf_chl(1)%fnow(ji,jj,1) ) ) 
     175                     ! zCtot   = 40.6  * zchl**0.459 
     176                     ! zze     = 568.2 * zCtot**(-0.746) 
     177                     ! IF( zze > 102. ) zze = 200.0 * zCtot**(-0.293) 
     178                     ! zpsi    = gdepw_n(ji,jj,jk) / zze 
    176179                     ! 
    177                      zlogc   = LOG( zchl ) 
    178                      zlogc2  = zlogc * zlogc 
    179                      zlogc3  = zlogc * zlogc * zlogc 
    180                      zCb     = 0.768 + 0.087 * zlogc - 0.179 * zlogc2 - 0.025 * zlogc3 
    181                      zCmax   = 0.299 - 0.289 * zlogc + 0.579 * zlogc2 
    182                      zpsimax = 0.6   - 0.640 * zlogc + 0.021 * zlogc2 + 0.115 * zlogc3 
    183                      zdelpsi = 0.710 + 0.159 * zlogc + 0.021 * zlogc2 
    184                      zCze    = 1.12  * (zchl)**0.803  
     180                     ! zlogc   = LOG( zchl ) 
     181                     ! zlogc2  = zlogc * zlogc 
     182                     ! zlogc3  = zlogc * zlogc * zlogc 
     183                     ! zCb     = 0.768 + 0.087 * zlogc - 0.179 * zlogc2 - 0.025 * zlogc3 
     184                     ! zCmax   = 0.299 - 0.289 * zlogc + 0.579 * zlogc2 
     185                     ! zpsimax = 0.6   - 0.640 * zlogc + 0.021 * zlogc2 + 0.115 * zlogc3 
     186                     ! zdelpsi = 0.710 + 0.159 * zlogc + 0.021 * zlogc2 
     187                     ! zCze    = 1.12  * (zchl)**0.803  
    185188                     ! 
    186                      zchl3d(ji,jj,jk) = zCze * ( zCb + zCmax * EXP( -( (zpsi - zpsimax) / zdelpsi )**2 ) ) 
     189                     ! zchl3d(ji,jj,jk) = zCze * ( zCb + zCmax * EXP( -( (zpsi - zpsimax) / zdelpsi )**2 ) ) 
     190 
     191                     zchl3d(ji,jj,jk) = MIN( 50. , MAX( 0.01, sf_chl(1)%fnow(ji,jj,1) ) ) 
    187192                  END DO 
    188193                  ! 
     
    404409         ENDIF 
    405410         IF( nqsr == np_RGB ) THEN                 ! constant Chl 
    406             IF(lwp) WRITE(numout,*) '   ==>>>   Constant Chlorophyll concentration = 0.05' 
     411            IF(lwp) WRITE(numout,*) '   ==>>>   Constant Chlorophyll concentration = ',rn_chl_conc 
    407412         ENDIF 
    408413         ! 
Note: See TracChangeset for help on using the changeset viewer.