Class crop_rotation#

Inheritance Relationships#

Base Type#

Class Documentation#

class crop_rotation : public module_base#

Basic crop rotation. Changes between two different landcovers on even/odd years. On even years, it sets the “crop” parameter to the parameter “annual_crop_inventory_1”, and on odd years it sets it to “annual_crop_inventory_2”. Mostly a proof-of-concept.

Depends:

  • None

Provides:

  • None

Configuration:

  • None

Parameters:

  • Year even crop “annual_crop_inventory_1”

  • Year odd crop “annual_crop_inventory_2”

Public Functions

crop_rotation(config_file cfg)#
~crop_rotation()#
virtual void run(mesh_elem &face)#

Needs to be implemented by each data parallel module. This will be called and executed for each timestep

Parameters:
  • face – The terrain element (triangle) to be worked upon for an element parallel domain

  • global_param – A pointer to the shared global paramter space with domain-wide paramters