Skip to content

Latest commit

 

History

History
36 lines (32 loc) · 774 Bytes

developer_notes.md

File metadata and controls

36 lines (32 loc) · 774 Bytes

Developer Notes

The structure of basic objects.

classDiagram
    Param <|-- ShareVars
    Param <|-- SitePar
    Param <|-- VegPar
    
    class Param{
        +initialize()
    }
    class ShareVars{
        +glb: global variable list
        +vars: variable list
        +logdt: variable logs at each time
        +initialize()
        +logvars()
        +output_pnet_ii()
        +output_pnet_day()
        +output_pnet_cn()
    }
    class SitePar{
        +Lat
        +WHC
        ...
    }
    class VegPar{
        +FolNCon
        +FolMassMax
        ...
    }
Loading

For each process (e.g., phenology, photosynthesis) function, we update all variable values at the end of the function so that it is clear which variables are updated by the function.