/[MITgcm]/MITgcm_contrib/darwin2/pkg/monod/MONOD_SIZE.h
ViewVC logotype

Annotation of /MITgcm_contrib/darwin2/pkg/monod/MONOD_SIZE.h

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


Revision 1.2 - (hide annotations) (download)
Thu May 31 21:08:25 2012 UTC (13 years, 2 months ago) by stephd
Branch: MAIN
CVS Tags: ctrb_darwin2_ckpt63o_20120629, ctrb_darwin2_ckpt63p_20120707, ctrb_darwin2_ckpt63n_20120604
Changes since 1.1: +17 -4 lines
File MIME type: text/plain
o add CDOM-like tracer (#define ALLOW_CDOM)

1 stephd 1.2 C $Header: /u/gcmpack/MITgcm_contrib/darwin2/pkg/monod/MONOD_SIZE.h,v 1.1 2011/04/13 18:56:25 jahn Exp $
2     C $Name: $
3 jahn 1.1
4     c MONOD_SIZE.h
5     c description: Size specification for generalized ecosystem model
6     c Mick Follows, Scott Grant Fall/Winter 2005
7     c Stephanie Dutkiewicz Spring/Summer 2006
8     c
9     c
10     c npmax = no of "functional groups" of phytoplankton
11     c nzmax = no of "functional groups" of zooplankton
12     c
13     c
14    
15     INTEGER npmax
16     INTEGER nzmax
17     PARAMETER(npmax=78,nzmax=2)
18    
19     C iPO4 :: index of PO4 in Ptracer
20     C iNO3 :: index of NO3 in Ptracer
21     C iFeT :: index of FeT in Ptracer
22     C iSi :: index of Si in Ptracer
23     C iDOP :: index of DOP in Ptracer
24     C iDON :: index of DON in Ptracer
25     C iDOFe :: index of DOFe in Ptracer
26     C iPOP :: index of POP in Ptracer
27     C iPON :: index of PON in Ptracer
28     C iPOFe :: index of POFe in Ptracer
29     C iPOSi :: index of POSi in Ptracer
30     C iNH4 :: index of NH4 in Ptracer
31     C iNO2 :: index of NO2 in Ptracer
32     C iZoo :: index of first zooplankton
33     C iPhy :: index of first phytoplankton
34     C iChl :: index of first phytoplankton Chl (if using dynamic chl)
35 stephd 1.2 C iCDOM :: index of CDOM (if using CDOM)
36 jahn 1.1 C nDarwin :: total number of ptracers used by DARWIN
37     C nCompZooMax :: maximum number of components each zooplankton can have (P,N,...)
38     C strideCompZoo :: increment between components of zooplankton
39     C :: iZooComp(nz) = iZoo+(nz-1)*strideTypeZoo+(iComp-1)*strideCompZoo
40     C strideTypeZoo :: increment between types of zooplankton
41     C :: iZooComp(nz) = iZoo+(nz-1)*strideTypeZoo+(iComp-1)*strideCompZoo
42     C the only reasonable choices for the above two are:
43     C strideCompZoo = 1
44     C strideTypeZoo = nCompZooMax
45     C (the traditional choice) or
46     C strideCompZoo = nzmax
47     C strideTypeZoo = 1
48     C remember to bring the fields in data.ptracers in the right order !
49    
50     INTEGER iPO4
51     INTEGER iNO3
52     INTEGER iFeT
53     INTEGER iSi
54     INTEGER iDOP
55     INTEGER iDON
56     INTEGER iDOFe
57     INTEGER iPOP
58     INTEGER iPON
59     INTEGER iPOFe
60     INTEGER iPOSi
61     INTEGER iNH4
62     INTEGER iNO2
63     INTEGER iZoo
64     INTEGER iPhy
65     INTEGER nDarwin
66     INTEGER nCompZooMax
67     INTEGER strideCompZoo
68     INTEGER strideTypeZoo
69     INTEGER iTot
70 stephd 1.2 INTEGER nTOT
71 jahn 1.1 #ifdef ALLOW_CARBON
72     INTEGER iDIC
73     INTEGER iDOC
74     INTEGER iPOC
75     INTEGER iPIC
76     INTEGER iALK
77     INTEGER iO2
78     INTEGER iZoC
79     #endif
80     #ifdef DYNAMIC_CHL
81     INTEGER iChl
82     #endif
83 stephd 1.2 #ifdef ALLOW_CDOM
84     INTEGER iCDOM
85     #endif
86 jahn 1.1 PARAMETER (nCompZooMax=4)
87     PARAMETER (strideCompZoo=1)
88     PARAMETER (strideTypeZoo=nCompZooMax)
89     PARAMETER (iPO4 =1)
90     PARAMETER (iNO3 =2)
91     PARAMETER (iFeT =3)
92     PARAMETER (iSi =4)
93     PARAMETER (iDOP =5)
94     PARAMETER (iDON =6)
95     PARAMETER (iDOFe =7)
96     PARAMETER (iZoo =8)
97     PARAMETER (iPOP =iZoo+nzmax*nCompZooMax)
98     PARAMETER (iPON =iPOP +1)
99     PARAMETER (iPOFe =iPON +1)
100     PARAMETER (iPOSi =iPOFe +1)
101     PARAMETER (iNH4 =iPOSi +1)
102     PARAMETER (iNO2 =iNH4 +1)
103     PARAMETER (iPhy =iNO2 +1)
104     #ifdef DYNAMIC_CHL
105     PARAMETER (iChl =iPhy +npmax)
106     PARAMETER (iTOT =iPhy +npmax+npmax)
107     #else
108     PARAMETER (iTOT =iPhy +npmax)
109     #endif
110 stephd 1.2 #ifdef ALLOW_CDOM
111     PARAMETER (iCDOM =iTOT)
112     PARAMETER (nTOT = iCDOM+1)
113     #else
114     PARAMETER (nTOT =iTOT)
115     #endif
116 jahn 1.1 #ifdef ALLOW_CARBON
117 stephd 1.2 PARAMETER (iDIC =nTOT)
118 jahn 1.1 PARAMETER (iDOC =iDIC+1)
119     PARAMETER (iPOC =iDOC+1)
120     PARAMETER (iPIC =iPOC+1)
121     PARAMETER (iALK =iPIC+1)
122     PARAMETER (iO2 =iALK+1)
123     PARAMETER (iZoC =iO2+1)
124     PARAMETER (nDarwin=iZoC+nzmax-1)
125     #else
126 stephd 1.2 PARAMETER (nDarwin=nTOT-1)
127 jahn 1.1 #endif
128 stephd 1.2
129    
130 jahn 1.1 C iZooP(nzmax) :: index of phosphorus content of each zooplankton type
131     C iZooN(nzmax) :: index of nitrogen content of each zooplankton type
132     C iZooFe(nzmax) :: index of iron content of each zooplankton type
133     C iZooSi(nzmax) :: index of silica content of each zooplankton type
134     C these are computed in darwin_init_fixed from iZoo, strideCompZoo and strideTypeZoo
135     INTEGER iZooP (nzmax)
136     INTEGER iZooN (nzmax)
137     INTEGER iZooFe(nzmax)
138     INTEGER iZooSi(nzmax)
139     #ifdef ALLOW_CARBON
140     INTEGER iZooC(nzmax)
141     #endif
142     COMMON/DARWIN_SIZE/ iZooP, iZooN, iZooFe, iZooSi
143     #ifdef ALLOW_CARBON
144     & ,iZooC
145     #endif
146    
147    

  ViewVC Help
Powered by ViewVC 1.1.22