I am sorry for the very basic subject, but with the new cpp options for bio_Fennel i have found myself struggling to make sense of the tracer identification indices and need some advise to how to interpret it relative to the idbio numbering.
As a test lets say that I have defined PO4, Oxygen and CARBON and now I would like to add a sponge for only PO4. In the bio_Fennel.in glossery I can read that:
Code: Select all
! GLOSSARY:
! =========
!
!------------------------------------------------------------------------------
! Fennel et al (2006), Nitrogen-based Biological Model Parameters. Currently,
! it can be configured with 15 biological tracers:
!
! idbio( 1) NO3 Nitrate concentration
! idbio( 2) NH4 Ammonium concentration
! idbio( 3) chlorophyll Chorophyll concentration
! idbio( 4) phytoplankton Phytoplankton biomass
! idbio( 5) zooplankton Zooplankton biomass
! idbio( 6) LdetritusN Large detritus N-concentration
! idbio( 7) SdetritusN Small detritus N-concentration
! idbio( 8) LdetritusC Large detritus C-concentration if CARBON
! idbio( 9) SdetritusC Small detritus C-concentration if CARBON
! idbio(10) TIC Total inorganic carbon if CARBON
! idbio(11) alkalinity Alkalinity if CARBON
! idbio(12) oxygen Oxygen concentration if OXYGEN
! idbio(13) PO4 Phosphate concentration if PO4
! idbio(14) RdetritusN River detritus N-concentration if RIVER_DON
! idbio(15) RdetritusC River detritus C-concentration if RIVER_DON
Code: Select all
LtracerSponge == 15*F
Code: Select all
LtracerSponge == 12*F T 2*F
Code: Select all
LtracerSponge == 7*F T 7*F
When I have a look in fennel_mod.h I can see that:
Code: Select all
!-----------------------------------------------------------------------
! Initialize tracer identification indices.
!-----------------------------------------------------------------------
!
ic=NAT+NPT+NCS+NNS
DO i=1,NBT
idbio(i)=ic+i
END DO
iNO3_=ic+1
iNH4_=ic+2
iChlo=ic+3
iPhyt=ic+4
iZoop=ic+5
iLDeN=ic+6
iSDeN=ic+7
ic=ic+7
# ifdef RIVER_DON
iRDeN=ic+1
ic=ic+1
# endif
# ifdef PO4
iPO4_=ic+1
ic=ic+1
# endif
# ifdef CARBON
iLDeC=ic+1
iSDeC=ic+2
iTIC_=ic+3
iTAlk=ic+4
ic=ic+4
# ifdef RIVER_DON
iRDeC=ic+1
ic=ic+1
# endif
# endif
# ifdef OXYGEN
iOxyg=ic+1
ic=ic+1
# endif
Can anyone help me understand if I am understanding this all wrong? Are the tracer identification indices not related to the idbio numbering and am I missing something obvious?
Thank you!