| 1 |
C $Header: $ |
| 2 |
C $Name: $ |
| 3 |
|
| 4 |
#include "BLING_OPTIONS.h" |
| 5 |
|
| 6 |
CBOP |
| 7 |
subroutine BLING_SGS( |
| 8 |
I PTR_NO3, PTR_PO4, PTR_FE, |
| 9 |
I PTR_O2, PTR_DON, PTR_DOP, |
| 10 |
O G_NO3, G_PO4, G_FE, |
| 11 |
O G_O2, G_DON, G_DOP, G_CACO3, |
| 12 |
I bi, bj, imin, imax, jmin, jmax, |
| 13 |
I myIter, myTime, myThid ) |
| 14 |
|
| 15 |
C ================================================================= |
| 16 |
C | subroutine bling_prod |
| 17 |
C | o Nutrient uptake and partitioning between organic pools. |
| 18 |
C | - Phytoplankton biomass-specific growth rate is calculated |
| 19 |
C | as a function of light, nutrient limitation, and |
| 20 |
C | temperature. |
| 21 |
C | - Biomass growth xxx |
| 22 |
C | o Organic matter export, remineralization, and recycling. |
| 23 |
C | - Sinking particulate flux and diel migration contribute to |
| 24 |
C | export. |
| 25 |
C | - Denitrification xxx |
| 26 |
C ================================================================= |
| 27 |
|
| 28 |
implicit none |
| 29 |
|
| 30 |
C === Global variables === |
| 31 |
C P_sm :: Small phytoplankton biomass |
| 32 |
C P_lg :: Large phytoplankton biomass |
| 33 |
C P_diaz :: Diazotroph phytoplankton biomass |
| 34 |
C irr_mem :: Phyto irradiance memory |
| 35 |
|
| 36 |
#include "SIZE.h" |
| 37 |
#include "DYNVARS.h" |
| 38 |
#include "EEPARAMS.h" |
| 39 |
#include "PARAMS.h" |
| 40 |
#include "GRID.h" |
| 41 |
#include "BLING_VARS.h" |
| 42 |
#include "PTRACERS_SIZE.h" |
| 43 |
#include "PTRACERS_PARAMS.h" |
| 44 |
#ifdef ALLOW_AUTODIFF |
| 45 |
# include "tamc.h" |
| 46 |
#endif |
| 47 |
|
| 48 |
C === Routine arguments === |
| 49 |
C bi,bj :: tile indices |
| 50 |
C iMin,iMax :: computation domain: 1rst index range |
| 51 |
C jMin,jMax :: computation domain: 2nd index range |
| 52 |
C myTime :: current time |
| 53 |
C myIter :: current timestep |
| 54 |
C myThid :: thread Id. number |
| 55 |
INTEGER bi, bj, imin, imax, jmin, jmax |
| 56 |
_RL myTime |
| 57 |
INTEGER myIter |
| 58 |
INTEGER myThid |
| 59 |
C === Input === |
| 60 |
C PTR_NO3 :: nitrate concentration |
| 61 |
C PTR_PO4 :: phosphate concentration |
| 62 |
C PTR_FE :: iron concentration |
| 63 |
C PTR_DON :: dissolved organic nitrogen concentration |
| 64 |
C PTR_DOP :: dissolved organic phosphorus concentration |
| 65 |
C PTR_O2 :: oxygen concentration |
| 66 |
_RL PTR_NO3(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr) |
| 67 |
_RL PTR_PO4(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr) |
| 68 |
_RL PTR_FE (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr) |
| 69 |
_RL PTR_DON(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr) |
| 70 |
_RL PTR_DOP(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr) |
| 71 |
_RL PTR_O2 (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr) |
| 72 |
C === Output === |
| 73 |
C G_xxx :: Tendency of xxx |
| 74 |
_RL G_NO3 (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr) |
| 75 |
_RL G_PO4 (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr) |
| 76 |
_RL G_FE (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr) |
| 77 |
_RL G_O2 (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr) |
| 78 |
_RL G_DON (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr) |
| 79 |
_RL G_DOP (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr) |
| 80 |
_RL G_CACO3 (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr) |
| 81 |
|
| 82 |
#ifdef ALLOW_BLING |
| 83 |
C === Local variables === |
| 84 |
C i,j,k :: loop indices |
| 85 |
|
| 86 |
INTEGER i,j,k |
| 87 |
|
| 88 |
CEOP |
| 89 |
|
| 90 |
c --------------------------------------------------------------------- |
| 91 |
c Initialize output and diagnostics |
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
c--------------------------------------------------------------------- |
| 96 |
c SUBGRIDSCALE SEDIMENT FLUXES |
| 97 |
c |
| 98 |
c The subgridscale sediment produces remineralization fluxes from sinking particles |
| 99 |
c throughout the water column, and leads to 3-dimensional fields for benthic |
| 100 |
c iron fluxes and benthic denitrification. |
| 101 |
c Note that the remineralization of particle flux intercepting the subgridscale |
| 102 |
c sediment is implicit in the reminp terms. |
| 103 |
|
| 104 |
#ifdef use_sgs_sed |
| 105 |
c!! |
| 106 |
#endif |
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
c --------------------------------------------------------------------- |
| 115 |
|
| 116 |
#ifdef ALLOW_DIAGNOSTICS |
| 117 |
IF ( useDiagnostics ) THEN |
| 118 |
|
| 119 |
ENDIF |
| 120 |
#endif /* ALLOW_DIAGNOSTICS */ |
| 121 |
|
| 122 |
#endif /* ALLOW_BLING */ |
| 123 |
|
| 124 |
RETURN |
| 125 |
END |