GCBM
peatlandspinupturnovermodule.h
Go to the documentation of this file.
1 #ifndef MOJA_MODULES_CBM_SPINUP_PEATLAND_PREPARE_H_
2 #define MOJA_MODULES_CBM_SPINUP_PEATLAND_PREPARE_H_
3 
4 #include "moja/modules/cbm/_modules.cbm_exports.h"
6 
9 
10 namespace moja {
11  namespace modules {
12  namespace cbm {
13 
14  /*
15  Prepare initial variables to simulate a peatland landunit (pixel)
16  */
18  public:
21 
22  void doLocalDomainInit() override;
23  void doTimingInit() override;
24  void doTimingStep() override;
25 
26 
27  private:
28  flint::IVariable* _spinupMossOnly = nullptr;
29  flint::IVariable* _appliedAnnualWTD{ nullptr };
30 
31  double _spinup_longterm_wtd{ 0 };
32  double _spinup_previous_annual_wtd{ 0 };
33  double _spinup_current_annual_wtd{ 0 };
34 
35  void doWaterTableFlux();
36 
37  bool _isInitialPoolLoaded{ false };
38  void loadPeatlandInitialPoolValues(const DynamicObject& data);
39  };
40  }
41  }
42 }
43 #endif
moja::modules::cbm
Definition: ageclasshelper.cpp:12
peatlandturnovermodulebase.h
moja::modules::cbm::PeatlandSpinupTurnOverModule::PeatlandSpinupTurnOverModule
PeatlandSpinupTurnOverModule()
Definition: peatlandspinupturnovermodule.h:19
peatlandgrowthparameters.h
moja::modules::cbm::PeatlandSpinupTurnOverModule::~PeatlandSpinupTurnOverModule
virtual ~PeatlandSpinupTurnOverModule()
Definition: peatlandspinupturnovermodule.h:20
moja::modules::cbm::PeatlandTurnoverModuleBase
Definition: peatlandturnovermodulebase.h:13
moja::modules::cbm::PeatlandSpinupTurnOverModule
Definition: peatlandspinupturnovermodule.h:17
peatlandturnoverparameters.h
moja
Definition: ageclasshelper.cpp:10