DrylandEcology / STEPWAT2

folder
4 stars 5 forks source link

Refactor WIldfireClimate struct (wildfire_cheatgrass_cycle branch) into two separate structs #534

Open mnovo323 opened 1 year ago

mnovo323 commented 1 year ago

521 and #522 were implemented with 1b60be281ebfbd19370ee64a91a64392771d8f9c

In this implementation, the struct stores information for both biomass and weather--mean annual temperature, proportion of precipitation in summer months, and annual precipitation. In gridded mode, this causes redundant code execution because each cell has the same weather.

The structure WildfireClimate needs to be split into two structures: one to hold biomass and one to hold weather. Each cell should own their own biomass and update it each iteration/year, but the weather only needs to be updated once per year.