ROMS
Loading...
Searching...
No Matches
nemuro_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 nemuro ecosystem model input parameters into output netcdf **
10** files. it is included in routine "wrt_info.F". **
11** **
12************************************************************************
13*/
14
15!
16! Write out Nemuro 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, 'AttPS', &
29 & attps(ng), (/0/), (/0/), &
30 & ncid = ncid)
31 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
32
33 CALL netcdf_put_fvar (ng, model, ncname, 'AttPL', &
34 & attpl(ng), (/0/), (/0/), &
35 & ncid = ncid)
36 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
37
38 CALL netcdf_put_fvar (ng, model, ncname, 'PARfrac', &
39 & parfrac(ng), (/0/), (/0/), &
40 & ncid = ncid)
41 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
42
43 CALL netcdf_put_fvar (ng, model, ncname, 'AlphaPS', &
44 & alphaps(ng), (/0/), (/0/), &
45 & ncid = ncid)
46 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
47
48 CALL netcdf_put_fvar (ng, model, ncname, 'AlphaPL', &
49 & alphapl(ng), (/0/), (/0/), &
50 & ncid = ncid)
51 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
52
53 CALL netcdf_put_fvar (ng, model, ncname, 'BetaPS', &
54 & betaps(ng), (/0/), (/0/), &
55 & ncid = ncid)
56 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
57
58 CALL netcdf_put_fvar (ng, model, ncname, 'BetaPL', &
59 & betapl(ng), (/0/), (/0/), &
60 & ncid = ncid)
61 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
62
63 CALL netcdf_put_fvar (ng, model, ncname, 'VmaxS', &
64 & vmaxs(ng), (/0/), (/0/), &
65 & ncid = ncid)
66 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
67
68 CALL netcdf_put_fvar (ng, model, ncname, 'VmaxL', &
69 & vmaxl(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_NO3S', &
74 & kno3s(ng), (/0/), (/0/), &
75 & ncid = ncid)
76 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
77
78 CALL netcdf_put_fvar (ng, model, ncname, 'K_NO3L', &
79 & kno3l(ng), (/0/), (/0/), &
80 & ncid = ncid)
81 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
82
83 CALL netcdf_put_fvar (ng, model, ncname, 'K_NH4S', &
84 & knh4s(ng), (/0/), (/0/), &
85 & ncid = ncid)
86 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
87
88 CALL netcdf_put_fvar (ng, model, ncname, 'K_NH4L', &
89 & knh4l(ng), (/0/), (/0/), &
90 & ncid = ncid)
91 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
92
93 CALL netcdf_put_fvar (ng, model, ncname, 'K_SiL', &
94 & ksil(ng), (/0/), (/0/), &
95 & ncid = ncid)
96 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
97
98 CALL netcdf_put_fvar (ng, model, ncname, 'PusaiS', &
99 & pusais(ng), (/0/), (/0/), &
100 & ncid = ncid)
101 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
102
103 CALL netcdf_put_fvar (ng, model, ncname, 'PusaiL', &
104 & pusail(ng), (/0/), (/0/), &
105 & ncid = ncid)
106 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
107
108 CALL netcdf_put_fvar (ng, model, ncname, 'KGppS', &
109 & kgpps(ng), (/0/), (/0/), &
110 & ncid = ncid)
111 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
112
113 CALL netcdf_put_fvar (ng, model, ncname, 'KGppL', &
114 & kgppl(ng), (/0/), (/0/), &
115 & ncid = ncid)
116 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
117
118 CALL netcdf_put_fvar (ng, model, ncname, 'ResPS0', &
119 & resps0(ng), (/0/), (/0/), &
120 & ncid = ncid)
121 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
122
123 CALL netcdf_put_fvar (ng, model, ncname, 'ResPL0', &
124 & respl0(ng), (/0/), (/0/), &
125 & ncid = ncid)
126 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
127
128 CALL netcdf_put_fvar (ng, model, ncname, 'KResPS', &
129 & kresps(ng), (/0/), (/0/), &
130 & ncid = ncid)
131 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
132
133 CALL netcdf_put_fvar (ng, model, ncname, 'KResPL', &
134 & krespl(ng), (/0/), (/0/), &
135 & ncid = ncid)
136 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
137
138 CALL netcdf_put_fvar (ng, model, ncname, 'GammaS', &
139 & gammas(ng), (/0/), (/0/), &
140 & ncid = ncid)
141 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
142
143 CALL netcdf_put_fvar (ng, model, ncname, 'GammaL', &
144 & gammal(ng), (/0/), (/0/), &
145 & ncid = ncid)
146 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
147
148 CALL netcdf_put_fvar (ng, model, ncname, 'MorPS0', &
149 & morps0(ng), (/0/), (/0/), &
150 & ncid = ncid)
151 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
152
153 CALL netcdf_put_fvar (ng, model, ncname, 'MorPL0', &
154 & morpl0(ng), (/0/), (/0/), &
155 & ncid = ncid)
156 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
157
158 CALL netcdf_put_fvar (ng, model, ncname, 'KMorPS', &
159 & kmorps(ng), (/0/), (/0/), &
160 & ncid = ncid)
161 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
162
163 CALL netcdf_put_fvar (ng, model, ncname, 'KMorPL', &
164 & kmorpl(ng), (/0/), (/0/), &
165 & ncid = ncid)
166 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
167
168 CALL netcdf_put_fvar (ng, model, ncname, 'GRmaxSps', &
169 & grmaxsps(ng), (/0/), (/0/), &
170 & ncid = ncid)
171 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
172
173 CALL netcdf_put_fvar (ng, model, ncname, 'GRmaxLps', &
174 & grmaxlps(ng), (/0/), (/0/), &
175 & ncid = ncid)
176 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
177
178 CALL netcdf_put_fvar (ng, model, ncname, 'GRmaxLpl', &
179 & grmaxlpl(ng), (/0/), (/0/), &
180 & ncid = ncid)
181 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
182
183 CALL netcdf_put_fvar (ng, model, ncname, 'GRmaxLzs', &
184 & grmaxlzs(ng), (/0/), (/0/), &
185 & ncid = ncid)
186 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
187
188 CALL netcdf_put_fvar (ng, model, ncname, 'GRmaxPpl', &
189 & grmaxppl(ng), (/0/), (/0/), &
190 & ncid = ncid)
191 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
192
193 CALL netcdf_put_fvar (ng, model, ncname, 'GRmaxPzs', &
194 & grmaxpzs(ng), (/0/), (/0/), &
195 & ncid = ncid)
196 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
197
198 CALL netcdf_put_fvar (ng, model, ncname, 'GRmaxPzl', &
199 & grmaxpzl(ng), (/0/), (/0/), &
200 & ncid = ncid)
201 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
202
203 CALL netcdf_put_fvar (ng, model, ncname, 'KGraS', &
204 & kgras(ng), (/0/), (/0/), &
205 & ncid = ncid)
206 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
207
208 CALL netcdf_put_fvar (ng, model, ncname, 'KGraL', &
209 & kgral(ng), (/0/), (/0/), &
210 & ncid = ncid)
211 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
212
213 CALL netcdf_put_fvar (ng, model, ncname, 'KGraP', &
214 & kgrap(ng), (/0/), (/0/), &
215 & ncid = ncid)
216 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
217
218 CALL netcdf_put_fvar (ng, model, ncname, 'LamS', &
219 & lams(ng), (/0/), (/0/), &
220 & ncid = ncid)
221 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
222
223 CALL netcdf_put_fvar (ng, model, ncname, 'LamL', &
224 & laml(ng), (/0/), (/0/), &
225 & ncid = ncid)
226 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
227
228 CALL netcdf_put_fvar (ng, model, ncname, 'LamP', &
229 & lamp(ng), (/0/), (/0/), &
230 & ncid = ncid)
231 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
232
233#ifdef HOLLING_GRAZING
234 CALL netcdf_put_fvar (ng, model, ncname, 'K_PS2ZS', &
235 & kps2zs(ng), (/0/), (/0/), &
236 & ncid = ncid)
237 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
238
239 CALL netcdf_put_fvar (ng, model, ncname, 'K_PS2ZL', &
240 & kps2zl(ng), (/0/), (/0/), &
241 & ncid = ncid)
242 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
243
244 CALL netcdf_put_fvar (ng, model, ncname, 'K_PL2ZL', &
245 & kpl2zl(ng), (/0/), (/0/), &
246 & ncid = ncid)
247 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
248
249 CALL netcdf_put_fvar (ng, model, ncname, 'K_ZS2ZL', &
250 & kzs2zl(ng), (/0/), (/0/), &
251 & ncid = ncid)
252 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
253
254 CALL netcdf_put_fvar (ng, model, ncname, 'K_PL2ZP', &
255 & kpl2zp(ng), (/0/), (/0/), &
256 & ncid = ncid)
257 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
258
259 CALL netcdf_put_fvar (ng, model, ncname, 'K_ZS2ZP', &
260 & kzs2zp(ng), (/0/), (/0/), &
261 & ncid = ncid)
262 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
263
264 CALL netcdf_put_fvar (ng, model, ncname, 'K_ZL2ZP', &
265 & kzl2zp(ng), (/0/), (/0/), &
266 & ncid = ncid)
267 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
268
269#else
270
271 CALL netcdf_put_fvar (ng, model, ncname, 'PS2ZSstar', &
272 & ps2zsstar(ng), (/0/), (/0/), &
273 & ncid = ncid)
274 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
275
276 CALL netcdf_put_fvar (ng, model, ncname, 'PS2ZLstar', &
277 & ps2zlstar(ng), (/0/), (/0/), &
278 & ncid = ncid)
279 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
280
281 CALL netcdf_put_fvar (ng, model, ncname, 'PL2ZLstar', &
282 & pl2zlstar(ng), (/0/), (/0/), &
283 & ncid = ncid)
284 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
285
286 CALL netcdf_put_fvar (ng, model, ncname, 'PL2ZLstar', &
287 & pl2zlstar(ng), (/0/), (/0/), &
288 & ncid = ncid)
289 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
290
291 CALL netcdf_put_fvar (ng, model, ncname, 'PL2ZPstar', &
292 & pl2zpstar(ng), (/0/), (/0/), &
293 & ncid = ncid)
294 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
295
296 CALL netcdf_put_fvar (ng, model, ncname, 'ZS2ZPstar', &
297 & zs2zpstar(ng), (/0/), (/0/), &
298 & ncid = ncid)
299 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
300
301 CALL netcdf_put_fvar (ng, model, ncname, 'ZL2ZPstar', &
302 & zl2zpstar(ng), (/0/), (/0/), &
303 & ncid = ncid)
304 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
305#endif
306
307 CALL netcdf_put_fvar (ng, model, ncname, 'PusaiPL', &
308 & pusaipl(ng), (/0/), (/0/), &
309 & ncid = ncid)
310 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
311
312 CALL netcdf_put_fvar (ng, model, ncname, 'PusaiZS', &
313 & pusaizs(ng), (/0/), (/0/), &
314 & ncid = ncid)
315 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
316
317 CALL netcdf_put_fvar (ng, model, ncname, 'MorZS0', &
318 & morzs0(ng), (/0/), (/0/), &
319 & ncid = ncid)
320 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
321
322 CALL netcdf_put_fvar (ng, model, ncname, 'MorZL0', &
323 & morzl0(ng), (/0/), (/0/), &
324 & ncid = ncid)
325 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
326
327 CALL netcdf_put_fvar (ng, model, ncname, 'MorZP0', &
328 & morzp0(ng), (/0/), (/0/), &
329 & ncid = ncid)
330 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
331
332 CALL netcdf_put_fvar (ng, model, ncname, 'AlphaZS', &
333 & alphazs(ng), (/0/), (/0/), &
334 & ncid = ncid)
335 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
336
337 CALL netcdf_put_fvar (ng, model, ncname, 'AlphaZL', &
338 & alphazl(ng), (/0/), (/0/), &
339 & ncid = ncid)
340 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
341
342 CALL netcdf_put_fvar (ng, model, ncname, 'AlphaZP', &
343 & alphazp(ng), (/0/), (/0/), &
344 & ncid = ncid)
345 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
346
347 CALL netcdf_put_fvar (ng, model, ncname, 'BetaZS', &
348 & betazs(ng), (/0/), (/0/), &
349 & ncid = ncid)
350 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
351
352 CALL netcdf_put_fvar (ng, model, ncname, 'BetaZL', &
353 & betazl(ng), (/0/), (/0/), &
354 & ncid = ncid)
355 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
356
357 CALL netcdf_put_fvar (ng, model, ncname, 'BetaZP', &
358 & betazp(ng), (/0/), (/0/), &
359 & ncid = ncid)
360 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
361
362 CALL netcdf_put_fvar (ng, model, ncname, 'Nit0', &
363 & nit0(ng), (/0/), (/0/), &
364 & ncid = ncid)
365 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
366
367 CALL netcdf_put_fvar (ng, model, ncname, 'VP2N0', &
368 & vp2n0(ng), (/0/), (/0/), &
369 & ncid = ncid)
370 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
371
372 CALL netcdf_put_fvar (ng, model, ncname, 'VP2D0', &
373 & vp2d0(ng), (/0/), (/0/), &
374 & ncid = ncid)
375 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
376
377 CALL netcdf_put_fvar (ng, model, ncname, 'VD2N0', &
378 & vd2n0(ng), (/0/), (/0/), &
379 & ncid = ncid)
380 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
381
382 CALL netcdf_put_fvar (ng, model, ncname, 'VO2S0', &
383 & vo2s0(ng), (/0/), (/0/), &
384 & ncid = ncid)
385 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
386
387 CALL netcdf_put_fvar (ng, model, ncname, 'KNit', &
388 & knit(ng), (/0/), (/0/), &
389 & ncid = ncid)
390 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
391
392 CALL netcdf_put_fvar (ng, model, ncname, 'KNit', &
393 & knit(ng), (/0/), (/0/), &
394 & ncid = ncid)
395 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
396
397 CALL netcdf_put_fvar (ng, model, ncname, 'KP2D', &
398 & kp2d(ng), (/0/), (/0/), &
399 & ncid = ncid)
400 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
401
402 CALL netcdf_put_fvar (ng, model, ncname, 'KP2N', &
403 & kp2n(ng), (/0/), (/0/), &
404 & ncid = ncid)
405 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
406
407 CALL netcdf_put_fvar (ng, model, ncname, 'KD2N', &
408 & kd2n(ng), (/0/), (/0/), &
409 & ncid = ncid)
410 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
411
412 CALL netcdf_put_fvar (ng, model, ncname, 'KO2S', &
413 & ko2s(ng), (/0/), (/0/), &
414 & ncid = ncid)
415 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
416
417 CALL netcdf_put_fvar (ng, model, ncname, 'RSiN', &
418 & rsin(ng), (/0/), (/0/), &
419 & ncid = ncid)
420 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
421
422 CALL netcdf_put_fvar (ng, model, ncname, 'setVPON', &
423 & setvpon(ng), (/0/), (/0/), &
424 & ncid = ncid)
425 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
426
427 CALL netcdf_put_fvar (ng, model, ncname, 'setVOpal', &
428 & setvopal(ng), (/0/), (/0/), &
429 & ncid = ncid)
430 IF (founderror(exit_flag, noerror, __line__, myfile)) RETURN
431
subroutine output(ng)
Definition output.F:4