/[MITgcm]/MITgcm_contrib/ecco_darwin/v4_llc270/code_darwin/DARWIN_IO.h
ViewVC logotype

Annotation of /MITgcm_contrib/ecco_darwin/v4_llc270/code_darwin/DARWIN_IO.h

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


Revision 1.1 - (hide annotations) (download)
Tue Aug 6 22:34:51 2019 UTC (7 years ago) by dcarroll
Branch: MAIN
File MIME type: text/plain
Updated non-linear dissolution code, added dissolution rate diagnostic,
additional CO2 flux budget terms, and code for DIC/alkalinity surface forcing (for ship track simulations)

1 dcarroll 1.1 C $Header: /u/gcmpack/MITgcm_contrib/darwin/pkg/darwin/DARWIN_IO.h,v 1.27 2013/12/27 17:37:51 jahn Exp $
2     C $Name: $
3    
4     #include "DARWIN_OPTIONS.h"
5    
6     c DARWIN_IO.h
7     c --------------------------------------------------------------------
8     c Description: input and diagnostic output for DARWIN pkg
9     c Stephanie Dutkiewicz: Spring 2006
10     c NOTE: additional diagnostics still needed
11     c --------------------------------------------------------------------
12    
13     C-- COMMON /DARWIN_FILENAMES/
14     C darwin_iceFile :: file name of seaice fraction
15     C darwin_ironFile :: file name of aeolian iron flux
16     C darwin_PARFile :: file name of Photosynthetically Active Radiation at surface
17     C darwin_nutWVelFile :: file name of nutrient wvel
18     C darwin_waterabsorbFile :: file name of water absorption/scattering spectra
19     C darwin_phytoabsorbFile :: file name of phyto absorption/scattering spectra
20     C darwin_particleabsorbFile :: file name of particle absorption/scattering spectra
21     C darwin_surfacespecFile :: file name of spectrum of incident light
22     C darwin_acdomFile :: file name of CDOM absorption spectrum
23     C darwin_forcingPeriod :: perioDARWIN forcing parameter specific for DARWIN (seconds)
24     C darwin_forcingCycle :: perioDARWIN forcing parameter specific for DARWIN (seconds)
25     C darwin_seed :: seed for the random number generator
26     C darwin_dicSurfFluxFile :: file name of dic surface flux
27     C darwin_alkSurfFluxFile :: file name of alk surface flux
28     C darwin_calSurfFluxFile :: file name of calcium surface flux
29    
30     COMMON /DARWIN_FILENAMES/
31     & darwin_iceFile,
32     & darwin_ironFile,
33     & darwin_PARFile,
34     & darwin_nutWVelFile,
35     & darwin_PO4_relaxFile, darwin_NO3_relaxFile,
36     & darwin_FeT_relaxFile, darwin_Si_relaxFile,
37     & darwin_relaxscale,
38     & darwin_PO4_fluxFile, darwin_NO3_FluxFile,
39     & darwin_FeT_fluxFile, darwin_Si_fluxFile,
40     & darwin_oasim_edFile, darwin_oasim_esFile,
41     & darwin_waterabsorbFile, darwin_phytoabsorbFile,
42     & darwin_surfacespecFile, darwin_acdomFile,
43     & darwin_particleabsorbFile,
44     & darwin_forcingPeriod, darwin_forcingCycle,
45     & darwin_seed,
46     & darwin_dicSurfFluxFile,
47     & darwin_alkSurfFluxFile,
48     & darwin_calSurfFluxFile
49    
50     CHARACTER*(MAX_LEN_FNAM) darwin_iceFile
51     CHARACTER*(MAX_LEN_FNAM) darwin_ironFile
52     CHARACTER*(MAX_LEN_FNAM) darwin_PARFile
53     CHARACTER*(MAX_LEN_FNAM) darwin_NutWVelFile
54     CHARACTER*(MAX_LEN_FNAM) darwin_PO4_relaxFile
55     CHARACTER*(MAX_LEN_FNAM) darwin_NO3_relaxFile
56     CHARACTER*(MAX_LEN_FNAM) darwin_FeT_relaxFile
57     CHARACTER*(MAX_LEN_FNAM) darwin_Si_relaxFile
58     CHARACTER*(MAX_LEN_FNAM) darwin_PO4_fluxFile
59     CHARACTER*(MAX_LEN_FNAM) darwin_NO3_fluxFile
60     CHARACTER*(MAX_LEN_FNAM) darwin_FeT_fluxFile
61     CHARACTER*(MAX_LEN_FNAM) darwin_Si_fluxFile
62     CHARACTER*(MAX_LEN_FNAM) darwin_oasim_edFile
63     CHARACTER*(MAX_LEN_FNAM) darwin_oasim_esFile
64     CHARACTER*(MAX_LEN_FNAM) darwin_waterabsorbFile
65     CHARACTER*(MAX_LEN_FNAM) darwin_phytoabsorbFile
66     CHARACTER*(MAX_LEN_FNAM) darwin_particleabsorbFile
67     CHARACTER*(MAX_LEN_FNAM) darwin_surfacespecFile
68     CHARACTER*(MAX_LEN_FNAM) darwin_acdomFile
69     CHARACTER*(MAX_LEN_FNAM) darwin_dicSurfFluxFile
70     CHARACTER*(MAX_LEN_FNAM) darwin_alkSurfFluxFile
71     CHARACTER*(MAX_LEN_FNAM) darwin_calSurfFluxFile
72    
73     _RL darwin_relaxscale
74     _RL darwin_forcingPeriod
75     _RL darwin_forcingCycle
76     INTEGER darwin_seed
77    
78     c INPUT:
79     c fice - ice fraction
80     c inputFe - aeolian input of iron
81     c sur_par - surface PAR
82     COMMON /DARWIN_INPUT/
83     & fice, inputFe, sur_par
84     #ifdef NUT_SUPPLY
85     & ,nut_wvel
86     #endif
87     #ifdef RELAX_NUTS
88     & ,po4_obs, no3_obs, fet_obs, si_obs
89     #endif
90     #ifdef FLUX_NUTS
91     & ,po4_flx, no3_flx, fet_flx, si_flx
92     #endif
93     #ifdef ADKINS_SURF_FLUX
94     & ,dicSurf_flx, alkSurf_flx, calSurf_flx
95     #endif
96     c
97     _RL fice(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx, nSy)
98     _RL inputFe(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx, nSy)
99     _RL sur_par(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx, nSy)
100     #ifdef NUT_SUPPLY
101     _RL nut_wvel(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx, nSy)
102     #endif
103     #ifdef RELAX_NUTS
104     _RL po4_obs(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx, nSy)
105     _RL no3_obs(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx, nSy)
106     _RL fet_obs(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx, nSy)
107     _RL si_obs(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx, nSy)
108     #endif
109     #ifdef FLUX_NUTS
110     _RL po4_flx(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx, nSy)
111     _RL no3_flx(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx, nSy)
112     _RL fet_flx(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx, nSy)
113     _RL si_flx(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx, nSy)
114     #endif
115     #ifdef ADKINS_SURF_FLUX
116     _RL dicSurf_flx(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx, nSy)
117     _RL alkSurf_flx(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx, nSy)
118     _RL calSurf_flx(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx, nSy)
119     #endif
120     c
121     c OUPUT DIAGNOSTICS
122     c PPave - average primary production
123     c Nfixave - average N fixation
124     c Zoograzave - average zooplankton consumption
125     c Parave - average PAR
126     c Chlave - average chlorophyll
127     c npzd_timeave - time for averaging
128    
129     COMMON /DARWIN_OUPUT/
130     & PPave, Nfixave, Zoograzave,
131     & PARave, Chlave, Denitave,
132     c ANNA_TAVE
133     #ifdef WAVES_DIAG_PCHL
134     & Pchlave,
135     #endif
136     #ifdef DAR_DIAG_ACDOM
137     & aCDOMave,
138     #endif
139     c ANNA end TAVE
140     #ifdef DAR_DIAG_RSTAR
141     & Rstarave, RNstarave,
142     #endif
143     #ifdef DAR_DIAG_DIVER
144     & Diver1ave, Diver2ave, Diver3ave, Diver4ave,
145     #endif
146     #ifdef DAR_DIAG_GROW
147     & Growave, Growsqave,
148     #endif
149     #ifdef ALLOW_DIAZ
150     #ifdef DAR_DIAG_NFIXP
151     & NfixPave,
152     #endif
153     #endif
154     & dar_timeave
155     c
156     _RL PPave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx, nSy)
157     _RL Nfixave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx, nSy)
158     _RL Zoograzave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx, nSy)
159     _RL PARave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx, nSy)
160     _RL Chlave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx, nSy)
161     _RL Denitave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx, nSy)
162     c ANNA_TAVE
163     #ifdef WAVES_DIAG_PCHL
164     _RL Pchlave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx, nSy,npmax)
165     #endif
166     #ifdef DAR_DIAG_ACDOM
167     _RL aCDOMave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx,nSy)
168     #endif
169     c ANNA end TAVE
170     #ifdef DAR_DIAG_RSTAR
171     _RL Rstarave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx, nSy,npmax)
172     _RL RNstarave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx, nSy,npmax)
173     #endif
174     #ifdef DAR_DIAG_DIVER
175     _RL Diver1ave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx, nSy)
176     _RL Diver2ave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx, nSy)
177     _RL Diver3ave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx, nSy)
178     _RL Diver4ave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx, nSy)
179     #endif
180     #ifdef DAR_DIAG_GROW
181     _RL Growave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx, nSy,npmax)
182     _RL Growsqave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx, nSy,npmax)
183     #endif
184     #ifdef ALLOW_DIAZ
185     #ifdef DAR_DIAG_NFIXP
186     _RL NfixPave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx, nSy,npmax)
187     #endif
188     #endif
189     _RL DAR_timeave(nSx,nSy)
190    
191     #ifdef CHECK_CONS
192     COMMON /DARWIN_CHECK_CONS/
193     & DAR_cons_unit1, DAR_cons_unit2,
194     & DAR_cons_unit3, DAR_cons_unit4,
195     & DAR_cons_unit5, DAR_cons_unit6,
196     & DAR_cons_unit7
197     INTEGER DAR_cons_unit1
198     INTEGER DAR_cons_unit2
199     INTEGER DAR_cons_unit3
200     INTEGER DAR_cons_unit4
201     INTEGER DAR_cons_unit5
202     INTEGER DAR_cons_unit6
203     INTEGER DAR_cons_unit7
204     #endif
205    
206     #ifdef ALLOW_PAR_DAY
207     C PARday :: array for accumulating/storing daily-averaged PAR
208     COMMON /DARWIN_PAR_DAY/ PARday,
209     & darwin_PARavPeriod, darwin_PARnav
210     _RL PARday(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx,nSy,2)
211     _RL darwin_PARavPeriod
212     INTEGER darwin_PARnav
213     #endif
214    
215     #ifdef ALLOW_CARBON
216     C-- COMMON /DIC_FILENAMES/
217     C DIC_windFile :: file name of wind speeds
218     C DIC_atmospFile :: file name of atmospheric pressure
219     C dic_pCO2 :: Atmospheric pCO2 to be rad in data.dic
220     C dic_int* :: place holder to read in a integer number, set at run time
221    
222     COMMON /DIC_FILENAMES/
223     & DIC_windFile, DIC_atmospFile,
224     & dic_pCO2, dic_int1, dic_int2, dic_int3, dic_int4
225     CHARACTER*(MAX_LEN_FNAM) DIC_windFile
226     CHARACTER*(MAX_LEN_FNAM) DIC_atmospFile
227     _RL dic_pCO2
228     INTEGER dic_int1
229     INTEGER dic_int2
230     INTEGER dic_int3
231     INTEGER dic_int4
232     #endif
233    

  ViewVC Help
Powered by ViewVC 1.1.22