1 |
|
C $Header$ |
2 |
|
C $Name$ |
3 |
|
|
4 |
#include "DIC_OPTIONS.h" |
#include "DIC_OPTIONS.h" |
5 |
#include "GCHEM_OPTIONS.h" |
#include "GCHEM_OPTIONS.h" |
6 |
|
|
8 |
C !ROUTINE: BIO_EXPORT |
C !ROUTINE: BIO_EXPORT |
9 |
|
|
10 |
C !INTERFACE: ========================================================== |
C !INTERFACE: ========================================================== |
11 |
SUBROUTINE BIO_EXPORT( PTR_PO4 , |
SUBROUTINE BIO_EXPORT( PTR_PO4 , |
12 |
#ifdef ALLOW_FE |
#ifdef ALLOW_FE |
13 |
I PTR_FE, |
I PTR_FE, |
14 |
#endif |
#endif |
15 |
I bioac, |
I bioac, |
16 |
I bi,bj,imin,imax,jmin,jmax, |
I bi,bj,imin,imax,jmin,jmax, |
17 |
I myIter,myTime,myThid) |
I myIter,myTime,myThid) |
18 |
|
|
19 |
c !DESCRIPTION: |
c !DESCRIPTION: |
20 |
C Calculate biological activity and export |
C Calculate biological activity and export |
21 |
|
|
22 |
C !USES: =============================================================== |
C !USES: =============================================================== |
23 |
IMPLICIT NONE |
IMPLICIT NONE |
106 |
thx = PTR_PO4(i,j,k)/(PTR_PO4(i,j,k)+KPO4) |
thx = PTR_PO4(i,j,k)/(PTR_PO4(i,j,k)+KPO4) |
107 |
thy = PTR_FE(i,j,k)/(PTR_FE(i,j,k)+KFE) |
thy = PTR_FE(i,j,k)/(PTR_FE(i,j,k)+KFE) |
108 |
theps = 1.d-6 |
theps = 1.d-6 |
109 |
nutlimit= ( 1.d0 - tanh((thx-thy)/theps) ) * thx/2 + |
nutlimit= ( 1.d0 - tanh((thx-thy)/theps) ) * thx/2 + |
110 |
& ( 1.d0 + tanh((thx-thy)/theps) ) * thy/2 |
& ( 1.d0 + tanh((thx-thy)/theps) ) * thy/2 |
111 |
#else |
#else |
112 |
nutlimit= min(PTR_PO4(i,j,k)/(PTR_PO4(i,j,k)+KPO4), |
nutlimit= min(PTR_PO4(i,j,k)/(PTR_PO4(i,j,k)+KPO4), |