Go to the documentation of this file. 1 #ifndef MOJA_MODULES_CBM_CBMDECAYMODULE_H_
2 #define MOJA_MODULES_CBM_CBMDECAYMODULE_H_
4 #include "moja/modules/cbm/_modules.cbm_exports.h"
23 pool = data[
"pool"].convert<std::string>();
26 tRef = data[
"reference_temp"];
28 pAtm = data[
"prop_to_atmosphere"];
43 void configure(
const DynamicObject& config)
override;
44 void subscribe(NotificationCenter& notificationCenter)
override;
46 void doLocalDomainInit()
override;
47 void doTimingInit()
override;
48 void doTimingStep()
override;
51 void getTransfer(std::shared_ptr<flint::IOperation> operation,
52 double meanAnnualTemperature,
53 const std::string& domPool,
54 const flint::IPool* poolSrc,
55 const flint::IPool* poolDest);
57 void getTransfer(std::shared_ptr<flint::IOperation> operation,
58 double meanAnnualTemperature,
59 const std::string& domPool,
60 const flint::IPool* pool);
82 bool _extraDecayRemovals {
false };
83 bool _skipForPeatland {
false };
91 #endif // MOJA_MODULES_CBM_CBMDECAYMODULE_H_
Definition: ageclasshelper.cpp:12
const flint::IPool * _atmosphere
Definition: cbmdecaymodule.h:76
const flint::IPool * _belowGroundFastSoil
Definition: cbmdecaymodule.h:68
Definition: cbmmodulebase.h:22
double pAtm
Definition: cbmdecaymodule.h:18
const flint::IPool * _belowGroundVeryFastSoil
Definition: cbmdecaymodule.h:66
const flint::IPool * _aboveGroundSlowSoil
Definition: cbmdecaymodule.h:70
double maxDecayRate
Definition: cbmdecaymodule.h:15
const flint::IPool * _aboveGroundFastSoil
Definition: cbmdecaymodule.h:67
CBMDecayModule()
Definition: cbmdecaymodule.h:40
double q10
Definition: cbmdecaymodule.h:16
std::map< std::string, PoolDecayParameters > _decayParameters
Definition: cbmdecaymodule.h:85
const flint::IPool * _aboveGroundVeryFastSoil
Definition: cbmdecaymodule.h:65
const flint::IPool * _softwoodStemSnag
Definition: cbmdecaymodule.h:72
PoolDecayParameters(const DynamicObject &data)
Definition: cbmdecaymodule.h:22
flint::IVariable * _spinupMossOnly
Definition: cbmdecaymodule.h:78
Definition: cbmdecaymodule.h:12
double tRef
Definition: cbmdecaymodule.h:17
Definition: cbmdecaymodule.h:38
const flint::IPool * _softwoodBranchSnag
Definition: cbmdecaymodule.h:73
std::string pool
Definition: cbmdecaymodule.h:13
PoolDecayParameters()
Definition: cbmdecaymodule.h:20
double _slowMixingRate
Definition: cbmdecaymodule.h:81
const flint::IPool * _hardwoodStemSnag
Definition: cbmdecaymodule.h:74
double baseDecayRate
Definition: cbmdecaymodule.h:14
Definition: ageclasshelper.cpp:10
std::map< std::string, std::map< std::string, double > > _decayRemovals
Definition: cbmdecaymodule.h:86
double getDecayRate(double mat)
Definition: cbmdecaymodule.h:31
const flint::IPool * _hardwoodBranchSnag
Definition: cbmdecaymodule.h:75
const flint::IPool * _belowGroundSlowSoil
Definition: cbmdecaymodule.h:71
const flint::IPool * _mediumSoil
Definition: cbmdecaymodule.h:69
flint::IVariable * _isDecaying
Definition: cbmdecaymodule.h:79