Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable HLM to create multiple columns for the vegetated landunit #2

Open
5 tasks
glemieux opened this issue Mar 27, 2024 · 1 comment
Open
5 tasks

Comments

@glemieux
Copy link

glemieux commented Mar 27, 2024

The current model assumes a single column for the vegetated landunit, which is added upon gridcell initliazation:

! Assume one column on the landunit
call add_column(ci=ci, li=li, ctype=1, wtlunit=1.0_r8)

We will need to allow multiple soil columns for a vegetated land unit to be added during initialization such that when we have disturbance of the soil we move the appropriate patches and their area to the appropriate time-since-fire age class bin column. This movement will need to be triggered by a disturbance mechanism similar to what we do with fates.

This will require updating the column weighting for the relevant upstream hierarchical unit:

! indices and weights for higher subgrid levels (landunit, topounit, gridcell)
integer , pointer :: gridcell (:) => null() ! index into gridcell level quantities
real(r8), pointer :: wtgcell (:) => null() ! weight (relative to gridcell)
integer , pointer :: topounit (:) => null() ! index into topounit level quantities
real(r8), pointer :: wttopounit (:) => null() ! weight (relative to topounit)
integer , pointer :: landunit (:) => null() ! index into landunit level quantities
real(r8), pointer :: wtlunit (:) => null() ! weight (relative to landunit)

@glemieux
Copy link
Author

glemieux commented Jun 10, 2024

Not that currently all calls to add_column take place in initGridCellsMod via different set_landunit_... calls. These are all wrapped up in the initGridCells subroutine:

call set_landunit_veg_compete( &
ltype=istsoil, gi=top_pp%gridcell(topounit), ti=topounit,topo_ind=topo_ind, li=li, ci=ci, pi=pi, &
setdata=.true.)

glemieux pushed a commit that referenced this issue Oct 11, 2024
Addresses minor cleaning edits following second round of review
glemieux pushed a commit that referenced this issue Oct 11, 2024
glemieux pushed a commit that referenced this issue Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant