LandscapeDNDC 1.37.0
output-soilchemistry-metrx-yearly.h
1
8#ifndef LM_OUTPUT_SOILCHEMISTRYMETRX_YEARLY_H_
9#define LM_OUTPUT_SOILCHEMISTRYMETRX_YEARLY_H_
10
11#include "mbe_legacyoutputmodel.h"
12
13#define LMOD_OUTPUT_MODULE_ID "output:soilchemistry-metrx:yearly"
14#define LMOD_OUTPUT_MODULE_DESC "SoilchemistryMeTrX Yearly Output"
15namespace ldndc {
16class LDNDC_API OutputSoilchemistryMeTrXYearly : public MBE_LegacyOutputModel
17{
18 LMOD_EXPORT_MODULE_INFO(OutputSoilchemistryMeTrXYearly,LMOD_OUTPUT_MODULE_ID,LMOD_OUTPUT_MODULE_DESC);
19 public:
20 OutputSoilchemistryMeTrXYearly(
21 MoBiLE_State *,
22 cbm::io_kcomm_t *,
23 timemode_e _timemode);
24
25 ~OutputSoilchemistryMeTrXYearly();
26
27
28 lerr_t configure( ldndc::config_file_t const *);
29 lerr_t initialize();
30 lerr_t solve();
31 lerr_t finalize();
32
33 lerr_t wake() { return LDNDC_ERR_OK; }
34 lerr_t sleep() { return LDNDC_ERR_OK; }
35
36
37 lerr_t write_results(
38 ldndc_flt64_t *);
39
40 size_t record_size() const;
41
42 private:
43 cbm::io_kcomm_t * m_iokcomm;
44 ldndc::sink_handle_t m_sink;
45 input_class_soillayers_t const & sl_;
46
47 public:
48 lvector_t< double > accumulated_n_no3_no2_denitrification_sl;
49};
50
51} /*namespace ldndc*/
52
53#undef LMOD_OUTPUT_MODULE_ID
54#undef LMOD_OUTPUT_MODULE_DESC
55
56#endif /* !LM_OUTPUT_SOILCHEMISTRYMETRX_YEARLY_H_ */
57
Spatially explicit groundwater model.
Definition: airchemistryput.h:15