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 10196 for branches/NERC/dev_r5518_GO6_under_ice_relax/NEMOGCM/NEMO/TOP_SRC/MEDUSA/detritus_fast_sink.F90 – NEMO

Ignore:
Timestamp:
2018-10-16T12:15:14+02:00 (6 years ago)
Author:
jpalmier
Message:

add DMS flux --

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/NERC/dev_r5518_GO6_under_ice_relax/NEMOGCM/NEMO/TOP_SRC/MEDUSA/detritus_fast_sink.F90

    r10047 r10196  
    66   !! History : 
    77   !!   -   ! 2017-04 (M. Stringer)        Code taken from trcbio_medusa.F90 
     8   !!   -   ! 2018-19 (A. Yool)            Bugfix for excessive CaCO3 production 
    89   !!---------------------------------------------------------------------- 
    910#if defined key_medusa 
     
    6364# if defined key_roam 
    6465                                   fifd_c, fofd_c, fregenfastc,            & 
     66               zdic, zalk,                             &  
    6567# endif 
    6668                                   idf, idfval,                            & 
     
    277279               !! factors to estimate the various elemental fractions (Si, Ca) 
    278280               ftempca(ji,jj) = ftempc(ji,jj) * fcaco3 
     281 
     282# if defined key_roam 
     283               !! AXY (12/10/18): while DIC and alkalinity typically occur at 
     284               !! high concentrations in the ocean relative to the fluxes that 
     285               !! affect them, there are occasions when fluxes are comparable 
     286               !! to local concentrations; for example, the "microboils" found 
     287               !! in UKESM1 produce very temporary (<< 1 day) T & S excursions 
     288               !! that also affect BGC tracers, moving them towards near-zero 
     289               !! concentrations; this causes carbonate chemistry deviations  
     290               !! that, in turn, potentially support CaCO3 production that is 
     291               !! in excess of local availability of DIC and alkalinity; the 
     292               !! following code ensures that ftempca does not exceed the local 
     293               !! capacities of both tracers 
     294               fq0 = 0.1  ! threshold change limiter 
     295               fq1 = min(ftempca(ji,jj), (zdic(ji,jj) * fq0))        ! DIC 
     296               fq2 = min(ftempca(ji,jj) * 2.0, (zalk(ji,jj) * fq0))  ! ALK 
     297               fq3 = min(fq1, (fq2 / 2.0))  ! select smallest flux 
     298               ftempca(ji,jj) = fq3  ! reset CaCO3 production 
     299# endif                
    279300 
    280301# if defined key_debug_medusa 
Note: See TracChangeset for help on using the changeset viewer.