-
Notifications
You must be signed in to change notification settings - Fork 92
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
FATES_PATCHAREA_AP only has data in chronologically-first history file #1207
Comments
I suspect this is related to the change of |
Confirming that switching it back to |
ok, looking into this now |
Some questions:
|
Works around NGEET#1207: FATES_PATCHAREA_AP only has data in chronologically-first history file.
Here is the setting described on the wiki page: https://fates-users-guide.readthedocs.io/en/latest/user/Namelist-Options-and-Run-Time-Modes.html @samsrabin can you confirm that fates_history_dimlevel = 2,2 ? |
or is use_fates_ed_st3 = True ? |
I used out-of-the-box settings for those:
|
I'm also not seeing anything in the docs about |
Well, the group_dyna settings are not forward facing to the user, so that is not why it is in the users guide. Maybe better commenting in the code is in order. group_dyna_simple and group_dyna_complx are used to flag history variables that are updated on the dynamics step, and are a single value for the column (simple) or arrays (complx) respectively. The simple group is active if fates_history_dimlevel(2) > 0, and the complex group is active if fates_history_dimlevel(2)>1. Still trying to figure out why this is not working. Could you try adding the following line: hio_area_si_age(io_si,:) = 0._r8 At the top of the site loop before anything else happens, perhaps around this line: |
Yup, that also fixes the issue. |
One of the issues here is that with these multi-dimension output variables, there may be indices in these arrays that are invalid. For instance, what if you wanted to report leaf temperatures on an array that has a second dimension that spans leaf-layers, but since the crowns are only so deep, you only have leaves on the first several leaf layer indices. It would be most straight forward to zero the output array, loop through the cohorts, increment the temperatures on the leaf-layers that are encountered, and then normalize. But then the issue is that we have zero's in the unused indices, which is misleading. Its not zero degrees, it should be invalid because there are no leaves. We have a method that initializes all variables in a group to zero, but I'm not a fan of it for the previous reason. Also, there are plenty of output variables that are filled without incrementing (just uses assignment), so zero'ing them is unecessary and inefficient. I only like zero'ing something when there is a specific need to zero it (such as incrementing to create a mean, or something like that). I see other variables that are being incremented (not assigned) but not zero'd. I think someone (me?) needs to do an audit on this and fix these variables. |
Here are all the variables in the default list (from the LUH2 branch) that have data in the first output timestep but are all missing in the second:
|
As of
sci.1.73.0_api.35.0.0
, the per-age-class patch area outputFATES_PATCHAREA_AP
only has data saved in the first (chronologically) history output file. The variable itself is there, but full of missing values.This didn't happen in
sci.1.71.0_api.33.0.0
. I can't test any intervening tags because those are the closest ones with which we have CTSM working.This blocks my ability to work on #1205.
The text was updated successfully, but these errors were encountered: