ROMS
Loading...
Searching...
No Matches
fennel_wrt.h
Go to the documentation of this file.
1/*
2** git $id$
3*************************************************** hernan g. arango ***
4** copyright(c) 2002-2025 the roms group **
5** licensed under a mit/x style license **
6** see license_roms.md **
7************************************************************************
8** **
9** writes fennel et al. (2006) ecosystem model input parameters into **
10** output netcdf files. it is included in routine "wrt_info.F". **
11** **
12************************************************************************
13*/
14
15!
16! Write out Fennel et al. (2006) ecosystem model parameters.
17!
18 CALL netcdf_put_ivar (ng, model, ncname, 'BioIter', &
19 & bioiter(ng), (/0/), (/0/), &
20 & ncid = ncid)
21 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
22
23 CALL netcdf_put_fvar (ng, model, ncname, 'AttSW', &
24 & attsw(ng), (/0/), (/0/), &
25 & ncid = ncid)
26 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
27
28 CALL netcdf_put_fvar (ng, model, ncname, 'AttChl', &
29 & attchl(ng), (/0/), (/0/), &
30 & ncid = ncid)
31 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
32
33 CALL netcdf_put_fvar (ng, model, ncname, 'PARfrac', &
34 & parfrac(ng), (/0/), (/0/), &
35 & ncid = ncid)
36 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
37
38 CALL netcdf_put_fvar (ng, model, ncname, 'Vp0', &
39 & vp0(ng), (/0/), (/0/), &
40 & ncid = ncid)
41 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
42
43 CALL netcdf_put_fvar (ng, model, ncname, 'I_thNH4', &
44 & i_thnh4(ng), (/0/), (/0/), &
45 & ncid = ncid)
46 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
47
48 CALL netcdf_put_fvar (ng, model, ncname, 'D_p5NH4', &
49 & d_p5nh4(ng), (/0/), (/0/), &
50 & ncid = ncid)
51 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
52
53 CALL netcdf_put_fvar (ng, model, ncname, 'NitriR', &
54 & nitrir(ng), (/0/), (/0/), &
55 & ncid = ncid)
56 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
57
58 CALL netcdf_put_fvar (ng, model, ncname, 'K_NO3', &
59 & k_no3(ng), (/0/), (/0/), &
60 & ncid = ncid)
61 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
62
63 CALL netcdf_put_fvar (ng, model, ncname, 'K_NH4', &
64 & k_nh4(ng), (/0/), (/0/), &
65 & ncid = ncid)
66 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
67
68 CALL netcdf_put_fvar (ng, model, ncname, 'K_PO4', &
69 & k_po4(ng), (/0/), (/0/), &
70 & ncid = ncid)
71 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
72
73 CALL netcdf_put_fvar (ng, model, ncname, 'K_Phy', &
74 & k_phy(ng), (/0/), (/0/), &
75 & ncid = ncid)
76 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
77
78 CALL netcdf_put_fvar (ng, model, ncname, 'Chl2C_m', &
79 & chl2c_m(ng), (/0/), (/0/), &
80 & ncid = ncid)
81 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
82
83 CALL netcdf_put_fvar (ng, model, ncname, 'ChlMin', &
84 & chlmin(ng), (/0/), (/0/), &
85 & ncid = ncid)
86 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
87
88 CALL netcdf_put_fvar (ng, model, ncname, 'PhyCN', &
89 & phycn(ng), (/0/), (/0/), &
90 & ncid = ncid)
91 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
92
93 CALL netcdf_put_fvar (ng, model, ncname, 'R_P2N', &
94 & r_p2n(ng), (/0/), (/0/), &
95 & ncid = ncid)
96 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
97
98 CALL netcdf_put_fvar (ng, model, ncname, 'PhyIP', &
99 & phyip(ng), (/0/), (/0/), &
100 & ncid = ncid)
101 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
102
103 CALL netcdf_put_fvar (ng, model, ncname, 'PhyIS', &
104 & phyis(ng), (/0/), (/0/), &
105 & ncid = ncid)
106 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
107
108 CALL netcdf_put_fvar (ng, model, ncname, 'PhyMin', &
109 & phymin(ng), (/0/), (/0/), &
110 & ncid = ncid)
111 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
112
113 CALL netcdf_put_fvar (ng, model, ncname, 'PhyMR', &
114 & phymr(ng), (/0/), (/0/), &
115 & ncid = ncid)
116 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
117
118 CALL netcdf_put_fvar (ng, model, ncname, 'ZooAE_N', &
119 & zooae_n(ng), (/0/), (/0/), &
120 & ncid = ncid)
121 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
122
123 CALL netcdf_put_fvar (ng, model, ncname, 'ZooBM', &
124 & zoobm(ng), (/0/), (/0/), &
125 & ncid = ncid)
126 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
127
128 CALL netcdf_put_fvar (ng, model, ncname, 'ZooCN', &
129 & zoocn(ng), (/0/), (/0/), &
130 & ncid = ncid)
131 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
132
133 CALL netcdf_put_fvar (ng, model, ncname, 'ZooER', &
134 & zooer(ng), (/0/), (/0/), &
135 & ncid = ncid)
136 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
137
138 CALL netcdf_put_fvar (ng, model, ncname, 'ZooGR', &
139 & zoogr(ng), (/0/), (/0/), &
140 & ncid = ncid)
141 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
142
143 CALL netcdf_put_fvar (ng, model, ncname, 'ZooMin', &
144 & zoomin(ng), (/0/), (/0/), &
145 & ncid = ncid)
146 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
147
148 CALL netcdf_put_fvar (ng, model, ncname, 'ZooMR', &
149 & zoomr(ng), (/0/), (/0/), &
150 & ncid = ncid)
151 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
152
153 CALL netcdf_put_fvar (ng, model, ncname, 'LDeRRN', &
154 & lderrn(ng), (/0/), (/0/), &
155 & ncid = ncid)
156 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
157
158 CALL netcdf_put_fvar (ng, model, ncname, 'LDeRRC', &
159 & lderrc(ng), (/0/), (/0/), &
160 & ncid = ncid)
161 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
162
163 CALL netcdf_put_fvar (ng, model, ncname, 'CoagR', &
164 & coagr(ng), (/0/), (/0/), &
165 & ncid = ncid)
166 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
167
168 CALL netcdf_put_fvar (ng, model, ncname, 'SDeRRN', &
169 & sderrn(ng), (/0/), (/0/), &
170 & ncid = ncid)
171 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
172
173 CALL netcdf_put_fvar (ng, model, ncname, 'SDeRRC', &
174 & sderrc(ng), (/0/), (/0/), &
175 & ncid = ncid)
176 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
177
178 CALL netcdf_put_fvar (ng, model, ncname, 'RDeRRN', &
179 & rderrn(ng), (/0/), (/0/), &
180 & ncid = ncid)
181 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
182
183 CALL netcdf_put_fvar (ng, model, ncname, 'RDeRRC', &
184 & rderrc(ng), (/0/), (/0/), &
185 & ncid = ncid)
186 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
187
188 CALL netcdf_put_fvar (ng, model, ncname, 'wPhy', &
189 & wphy(ng), (/0/), (/0/), &
190 & ncid = ncid)
191 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
192
193 CALL netcdf_put_fvar (ng, model, ncname, 'wLDet', &
194 & wldet(ng), (/0/), (/0/), &
195 & ncid = ncid)
196 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
197
198 CALL netcdf_put_fvar (ng, model, ncname, 'wSDet', &
199 & wsdet(ng), (/0/), (/0/), &
200 & ncid = ncid)
201 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
202
203 CALL netcdf_put_fvar (ng, model, ncname, 'pCO2air', &
204 & pco2air(ng), (/0/), (/0/), &
205 & ncid = ncid)
206 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
subroutine output(ng)
Definition output.F:4