6#ifndef LM_OUTPUT_SOILCHEMISTRY_HORIZONS_DAILY_H_
7#define LM_OUTPUT_SOILCHEMISTRY_HORIZONS_DAILY_H_
9#include "mbe_legacyoutputmodel.h"
10#include "state/mbe_state.h"
12#define LMOD_OUTPUT_MODULE_BASE MBE_LegacyOutputModel
13#define LMOD_OUTPUT_MODULE_NAME OutputSoilchemistryHorizonsDaily
14#define LMOD_OUTPUT_MODULE_ID "output:soilchemistry-horizons:daily"
15#define LMOD_OUTPUT_MODULE_DESC "Soil Chemistry Daily Output (Horizons)"
19class LDNDC_API LMOD_OUTPUT_MODULE_NAME :
public LMOD_OUTPUT_MODULE_BASE
21 LMOD_EXPORT_MODULE_INFO(LMOD_OUTPUT_MODULE_NAME,LMOD_OUTPUT_MODULE_ID,LMOD_OUTPUT_MODULE_DESC);
23 LMOD_OUTPUT_MODULE_NAME(
26 timemode_e _timemode);
28 ~LMOD_OUTPUT_MODULE_NAME();
31 lerr_t configure( ldndc::config_file_t
const *);
39 lerr_t wake() {
return LDNDC_ERR_OK; }
40 lerr_t sleep() {
return LDNDC_ERR_OK; }
43 lerr_t dump_0( ldndc_flt64_t * );
46 cbm::io_kcomm_t * io_kcomm;
48 input_class_soillayers_t
const * soillayers_;
49 substate_physiology_t
const * phys;
50 MoBiLE_PlantVegetation * vegetation;
51 substate_soilchemistry_t
const * sc;
54 ldndc::sink_handle_t m_sink;
56 lvector_t< double > accumulated_n_no3_leaching_sl;
58 struct output_soilchemistry_daily_acc_t
61 double mineralN_floor;
62 double nitrifyN_floor;
63 double denitrifyN_floor;
64 double denitrify_no2_floor;
65 double denitrify_no_floor;
66 double denitrify_n2o_floor;
72 double denitrifyN_min;
73 double denitrify_no2_min;
74 double denitrify_no_min;
75 double denitrify_n2o_min;
78 output_soilchemistry_daily_acc_t acc;
80 void pop_accumulated_outputs();
81 void push_accumulated_outputs();
87#undef LMOD_OUTPUT_MODULE_BASE
88#undef LMOD_OUTPUT_MODULE_NAME
89#undef LMOD_OUTPUT_MODULE_ID
90#undef LMOD_OUTPUT_MODULE_DESC
Spatially explicit groundwater model.
Definition: airchemistryput.h:15