Changeset 10196 for branches/NERC/dev_r5518_GO6_under_ice_relax/NEMOGCM/NEMO/TOP_SRC/MEDUSA/detritus_fast_sink.F90
- Timestamp:
- 2018-10-16T12:15:14+02:00 (6 years ago)
- 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 6 6 !! History : 7 7 !! - ! 2017-04 (M. Stringer) Code taken from trcbio_medusa.F90 8 !! - ! 2018-19 (A. Yool) Bugfix for excessive CaCO3 production 8 9 !!---------------------------------------------------------------------- 9 10 #if defined key_medusa … … 63 64 # if defined key_roam 64 65 fifd_c, fofd_c, fregenfastc, & 66 zdic, zalk, & 65 67 # endif 66 68 idf, idfval, & … … 277 279 !! factors to estimate the various elemental fractions (Si, Ca) 278 280 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 279 300 280 301 # if defined key_debug_medusa
Note: See TracChangeset
for help on using the changeset viewer.