1 |
C $Header: /u/gcmpack/MITgcm/pkg/dic/DIC_VARS.h,v 1.9 2012/06/08 20:31:10 stephd Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "DIC_OPTIONS.h" |
5 |
|
6 |
C *==========================================================* |
7 |
C | DIC_VARS.h |
8 |
C | o Carbon Variables |
9 |
C *==========================================================* |
10 |
|
11 |
COMMON /CARBON_NEEDS/ |
12 |
& AtmospCO2, AtmosP, pH, pCO2, FluxCO2, |
13 |
& wind, FIce, Silica, Kwexch_Pre |
14 |
_RL AtmospCO2(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
15 |
_RL AtmosP(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
16 |
_RL pH(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
17 |
_RL pCO2(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
18 |
_RL FluxCO2(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
19 |
_RL wind(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
20 |
_RL FIce(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
21 |
_RL Silica(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
22 |
_RL Kwexch_Pre(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
23 |
|
24 |
COMMON /CARBON_CHEM/ |
25 |
& ak0,ak1,ak2,akw,akb,aks,akf, |
26 |
& ak1p,ak2p,ak3p,aksi, fugf, |
27 |
& ff,ft,st,bt, Ksp_TP_Calc |
28 |
_RL ak0(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
29 |
_RL ak1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
30 |
_RL ak2(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
31 |
_RL akw(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
32 |
_RL akb(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
33 |
_RL aks(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
34 |
_RL akf(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
35 |
_RL ak1p(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
36 |
_RL ak2p(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
37 |
_RL ak3p(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
38 |
_RL aksi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
39 |
_RL ff(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
40 |
C Fugacity Factor added by Val Bennington Nov. 2010 |
41 |
_RL fugf(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
42 |
_RL ft(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
43 |
_RL st(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
44 |
_RL bt(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
45 |
_RL Ksp_TP_Calc(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
46 |
|
47 |
COMMON /OXYGEN_CHEM/ |
48 |
& oA0,oA1,oA2,oA3,oA4,oA5, |
49 |
& oB0,oB1,oB2,oB3, |
50 |
& oC0 |
51 |
_RL oA0,oA1,oA2,oA3,oA4,oA5 |
52 |
_RL oB0,oB1,oB2,oB3 |
53 |
_RL oC0 |
54 |
|
55 |
C permil : is conversion factor for mol/m3 to mol/kg |
56 |
C assumes uniform (surface) density |
57 |
C Pa2Atm : for conversion of atmospheric pressure |
58 |
C when coming from atmospheric model |
59 |
COMMON /GLOBAL_SURF_MEAN/ |
60 |
& gsm_alk,gsm_s,gsm_t,gsm_dic, |
61 |
& gsm_c14,permil,Pa2Atm |
62 |
_RL gsm_alk |
63 |
_RL gsm_s |
64 |
_RL gsm_t |
65 |
_RL gsm_DIC |
66 |
_RL gsm_C14 |
67 |
_RL permil |
68 |
_RL Pa2Atm |
69 |
|
70 |
C schmidt number coefficients |
71 |
COMMON /DIC_SCHMIDT_NO/ |
72 |
& sca1, sca2, sca3, sca4, |
73 |
& sox1, sox2, sox3, sox4 |
74 |
_RL sca1 |
75 |
_RL sca2 |
76 |
_RL sca3 |
77 |
_RL sca4 |
78 |
_RL sox1 |
79 |
_RL sox2 |
80 |
_RL sox3 |
81 |
_RL sox4 |
82 |
|
83 |
C-- COMMON /DIC_FILENAMES/ |
84 |
C DIC_windFile :: file name of wind speeds |
85 |
C DIC_atmospFile :: file name of atmospheric pressure |
86 |
C DIC_iceFile :: file name of seaice fraction |
87 |
C DIC_ironFile :: file name of aeolian iron flux |
88 |
C DIC_silicaFile :: file name of surface silica |
89 |
C DIC_parFile :: file name of photosynthetically available radiation (PAR) |
90 |
C DIC_chlaFile :: file name of chlorophyll climatology |
91 |
C DIC_forcingPeriod :: periodic forcing parameter specific for dic (seconds) |
92 |
C DIC_forcingCycle :: periodic forcing parameter specific for dic (seconds) |
93 |
C dic_pCO2 :: Atmospheric pCO2 to be rad in data.dic |
94 |
C dic_int* :: place holder to read in a integer number, set at run time |
95 |
|
96 |
COMMON /DIC_FILENAMES/ |
97 |
& DIC_windFile, DIC_atmospFile, DIC_iceFile, |
98 |
& DIC_ironFile, DIC_silicaFile, DIC_parFile, |
99 |
& DIC_chlaFile, |
100 |
& DIC_forcingPeriod, DIC_forcingCycle, |
101 |
& dic_pCO2, dic_int1, dic_int2, dic_int3, dic_int4 |
102 |
|
103 |
CHARACTER*(MAX_LEN_FNAM) DIC_windFile |
104 |
CHARACTER*(MAX_LEN_FNAM) DIC_atmospFile |
105 |
CHARACTER*(MAX_LEN_FNAM) DIC_iceFile |
106 |
CHARACTER*(MAX_LEN_FNAM) DIC_ironFile |
107 |
CHARACTER*(MAX_LEN_FNAM) DIC_silicaFile |
108 |
CHARACTER*(MAX_LEN_FNAM) DIC_parFile |
109 |
CHARACTER*(MAX_LEN_FNAM) DIC_chlaFile |
110 |
_RL DIC_forcingPeriod |
111 |
_RL DIC_forcingCycle |
112 |
_RL dic_pCO2 |
113 |
INTEGER dic_int1 |
114 |
INTEGER dic_int2 |
115 |
INTEGER dic_int3 |
116 |
INTEGER dic_int4 |
117 |
|
118 |
#ifdef DIC_BIOTIC |
119 |
C *==========================================================* |
120 |
C | o Biological Carbon Variables |
121 |
C *==========================================================* |
122 |
|
123 |
COMMON /BIOTIC_NEEDS/ |
124 |
& BIOave, CARave, SURave, SUROave, pCO2ave, pHave, |
125 |
& fluxCO2ave, omegaCave, pfluxave, epfluxave, cfluxave, |
126 |
& DIC_timeAve, |
127 |
& par, alpha, rain_ratio, InputFe, omegaC, CHL, |
128 |
& Kpo4, DOPfraction, zcrit, KRemin, |
129 |
& KDOPremin,zca,R_op,R_cp,R_NP, R_FeP, |
130 |
& O2crit, alpfe, KScav, ligand_stab, ligand_tot, KFE, |
131 |
& freefemax, fesedflux_pcm, FeIntSec, |
132 |
& parfrac, k0, kchl, lit0, |
133 |
& alphaUniform, rainRatioUniform, |
134 |
& alphamax, alphamin, |
135 |
& calpha, crain_ratio, cInputFe, calpfe, feload, cfeload, |
136 |
& nlev, QSW_underice |
137 |
|
138 |
INTEGER nlev |
139 |
|
140 |
C For averages |
141 |
_RL BIOave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
142 |
_RL CARave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
143 |
_RL SURave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
144 |
_RL SUROave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
145 |
_RL pCO2ave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
146 |
_RL pHave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
147 |
_RL fluxCO2ave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
148 |
_RL OmegaCave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
149 |
_RL pfluxave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
150 |
_RL epfluxave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
151 |
_RL cfluxave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
152 |
_RL DIC_timeAve(nSx,nSy) |
153 |
|
154 |
C values for biogeochemistry |
155 |
C CHL :: chlorophyll climatology [mg/m3] |
156 |
C fesedflux_pcm :: ratio of sediment iron to sinking organic matter |
157 |
C FeIntSec :: Sediment Fe flux, intersect value in: |
158 |
C Fe_flux = fesedflux_pcm*pflux + FeIntSec |
159 |
_RL par(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
160 |
_RL alpha(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
161 |
_RL rain_ratio(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
162 |
_RL InputFe(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
163 |
_RL omegaC(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
164 |
_RL CHL(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
165 |
_RL Kpo4 |
166 |
_RL DOPfraction |
167 |
_RL zcrit |
168 |
_RL KRemin |
169 |
_RL KDOPremin |
170 |
_RL zca |
171 |
_RL R_op |
172 |
_RL R_cp |
173 |
_RL R_NP |
174 |
_RL R_FeP |
175 |
_RL O2crit |
176 |
_RL alpfe |
177 |
_RL fesedflux_pcm |
178 |
_RL FeIntSec |
179 |
_RL KScav |
180 |
_RL ligand_stab |
181 |
_RL ligand_tot |
182 |
_RL KFe |
183 |
_RL freefemax |
184 |
C values for light limited bio activity |
185 |
C k0 :: Light attentuation coefficient for water [1/m] |
186 |
C kchl :: Light attentuation coefficient fct of chlorophyll [m2/mg] |
187 |
_RL k0, kchl, parfrac, lit0 |
188 |
_RL alphaUniform |
189 |
_RL rainRatioUniform |
190 |
_RL alphamax, alphamin |
191 |
_RL calpha |
192 |
_RL crain_ratio |
193 |
_RL cInputFe(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
194 |
_RL calpfe |
195 |
_RL cfeload |
196 |
_RL feload(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
197 |
|
198 |
LOGICAL QSW_underice |
199 |
#endif /* DIC_BIOTIC */ |
200 |
|
201 |
CEH3 ;;; Local Variables: *** |
202 |
CEH3 ;;; mode:fortran *** |
203 |
CEH3 ;;; End: *** |