Skip to content

Add a function to get aboveground biomass of a grass cohort #1267

@samsrabin

Description

@samsrabin

There are several places in the code where the aboveground biomass of a grass cohort is calculated like

currentCohort%prt%GetState(leaf_organ,element_id) + &
currentCohort%prt%GetState(sapw_organ,element_id) + &
currentCohort%prt%GetState(struct_organ,element_id)

This is really verbose and, more importantly, susceptible to errors. It would be better to have a cohort-level function like GrassAbovegroundBiomass(element_id) that we call wherever needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    ❕Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions