Replies: 1 comment
-
Moving to a discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm going through the code, trying to understand canopystate_inst%frac_veg_nosno_patch(p), how its used, where it is set, and how it interacts with other variables. Here are my notes:
Key Points:
https://github.com/ESCOMP/ctsm/blob/master/src/main/clm_driver.F90#L1379
Where it is defined:
https://github.com/ESCOMP/ctsm/blob/master/src/biogeophys/CanopyStateType.F90#L25
Where it is set:
As mentioned above, frac_veg_nosno_patch is a result of frac_veg_nosno_alb_patch, and patch%active, set early in the main driver loop.
frac_veg_nosno_alb_patch is set depending on namelist settings, but is either calculated by:
Where it is used (including the resulting filter):
It does not seem like frac_veg_nosno_alb_patch is used anywhere. I'm guessing we need frac_veg_nosno_alb_patch because it may be filled from the satellite dataset, and may not know at the time of filling it, if patches are active or not?
frac_veg_nosno_patch is used to filter patches that should both have an active land-model, and where snow is not covering all of the vegetation.
Thoughts?
Maybe expand the in code comments to make it clear that frac_veg_nosno_patch is the key variable that sets the exposed vegetation filter, and that frac_veg_nosno_alb_patch and patch%active are the variables that define it.
Beta Was this translation helpful? Give feedback.
All reactions