/[MITgcm]/MITgcm/pkg/dic/bio_export.F
ViewVC logotype

Contents of /MITgcm/pkg/dic/bio_export.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Jun 25 21:00:36 2003 UTC (21 years ago) by stephd
Branch: MAIN
CVS Tags: checkpoint51e_post, checkpoint51a_post, checkpoint51c_post, checkpoint51f_pre, checkpoint51f_post, checkpoint51b_post, checkpoint51b_pre, branchpoint-genmake2, checkpoint51g_post, checkpoint51d_post
Branch point for: branch-genmake2
initial checking in biogeochemistry packages

1 #include "CPP_OPTIONS.h"
2 #include "GCHEM_OPTIONS.h"
3
4 CStartOfInterFace
5 SUBROUTINE BIO_EXPORT( PTR_PO4 ,
6 #ifdef ALLOW_FE
7 I PTR_FE,
8 #endif
9 I bioac,
10 I bi,bj,imin,imax,jmin,jmax,
11 I myIter,myTime,myThid)
12
13 C /==========================================================\
14 C | SUBROUTINE BIO_EXPORT |
15 C | o Calculate biological activity and export |
16 C |==========================================================|
17 IMPLICIT NONE
18
19 C == GLobal variables ==
20 #include "SIZE.h"
21 #include "DYNVARS.h"
22 #include "EEPARAMS.h"
23 #include "PARAMS.h"
24 #include "GRID.h"
25 #include "DIC_ABIOTIC.h"
26 #include "DIC_BIOTIC.h"
27
28 C == Routine arguments ==
29 INTEGER myIter
30 _RL myTime
31 INTEGER myThid
32 _RL PTR_PO4(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)
33 #ifdef ALLOW_FE
34 _RL PTR_FE(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)
35 #endif
36 _RL bioac(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR)
37 _RL sfac(1-OLy:sNy+OLy)
38 _RL lit, atten
39 INTEGER imin, imax, jmin, jmax, bi, bj
40
41 #ifdef ALLOW_PTRACERS
42 #ifdef DIC_BIOTIC
43 C == Local variables ==
44 INTEGER I,J,k
45 c
46 call insol(myTime,sfac,bj)
47 DO j=1-OLy,sNy+OLy
48 DO i=1-OLx,sNx+OLx
49 lit=sfac(j)
50 DO k=1,nlev
51 atten=(k0*delz(k)*.5)
52 if (k.gt.1) atten=(k0*delz(k-1)*.5)
53 lit=lit*exp(-atten)*(1.d0-Fice(i,j,bi,bj))
54 if (lit.lt.0.d0.or.lit.gt.150) then
55 print*,'QQ lit', lit
56 endif
57 bioac(i,j,k)=alpha(i,j,bi,bj)*
58 & PTR_PO4(i,j,k)/(PTR_PO4(i,j,k)+KPO4)*
59 #ifdef ALLOW_FE
60 & PTR_FE(i,j,k)/(PTR_FE(i,j,k)+KFE)*
61 #endif
62 & lit/(lit+lit0)*maskC(i,j,k,bi,bj)
63 ENDDO
64 ENDDO
65 ENDDO
66 c
67 #endif
68 #endif
69 RETURN
70 END

  ViewVC Help
Powered by ViewVC 1.1.22