-
Notifications
You must be signed in to change notification settings - Fork 318
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
(CLM-only) LAND and PFTS 1D vector history averaging blows up... #77
Comments
Erik Kluzek < erik > - 2017-04-25 14:09:10 -0600 We are opening this up again as we want to be able to do this with the latest model. We are currently outputting in vector format for all PFT's and it's costly both in terms of postprocessing and disc space for something that we don't need. I thought there might be a chance that the fix from Jim for 2184 might have fixed this issue, but Keith showed that wasn't the case. |
Jim Edwards < jedwards > - 2017-04-25 14:17:40 -0600 This report does not provide adequate information to reproduce the problem. |
Erik Kluzek < erik > - 2017-04-25 14:18:51 -0600 (In reply to Jim Edwards from comment #2)
Yes, I am setting that test case up right now. |
Erik Kluzek < erik > - 2017-04-26 00:11:32 -0600 I setup a test case to demonstrate the problem, and Intel immediately showed a subscript overflow. So I figured I could probably figure the problem out fairly quickly. I boiled it down to the size of a single point problem, and have it running in DDT. I see the problems and also see that the code was never constructed in such a way that these cases would work. So it needs some work to enable them, but then should work as advertised. |
Erik Kluzek < erik > - 2017-04-26 11:31:49 -0600 OK, so averaging up to landunit or column just wasn't implemented, even though the code claimed it was. Looking at the code the code allowed variables to be output on the native format or mapped up to gridcell level. And there's some hardwiring going on to assuming any mapping done is at the gridcell level. However, there is also some generality in place that allow if mapping is done for the mapping to be done to the landunit level or the column level by doing what is done for gridcell. So in the example below I'm showing what needs to be done to coopt the gridcell averaging part to also allow mapping to landunit or column. In the end a more general name should be used for this. Also I'm just showing what needs to be done for the 1d arrays in hist_update_hbuf_field_1d, the same sort of thing needs to happen for 2D arrays in hist_update_hbuf_field_2d. But the code changes look almost identical other than the use of 2D arrays rather than 1D.
|
Erik Kluzek < erik > - 2017-04-26 14:26:00 -0600 There's also a bug in a dimension for p2l, which doesn't seem to be used anywhere else.
|
Erik Kluzek < erik > - 2017-04-28 11:37:47 -0600 I have this working for a single point case. There are additional changes I need to do to get a global case to work. But, I can see that those can be resolved so I'm now confident I can finish this out. |
Erik Kluzek < erik > - 2017-05-20 16:41:13 -0600 OK, so the remaining issue is that it has trouble when you say you want to output averaging up to a level lower than the native grid. For example you ask for COLS on a field that is native on the landunit. As it is this dies with an error, because the subscripts aren't dimensioned properly. We decided that this is OK, we just want it to die with an error if you ask for such a thing. To do this cleanly, I think we just need to add an endrun call in the new subroutine I added: is_mapping_upto_subgrid. The call to it in htape_addfld, should have an additional optional field added to send a nice message for this. We also thought we should change PFTS to PATCH. And I think we should change ' ' to 'NATIVE'. |
Erik Kluzek < erik > - 2017-11-13 13:08:39 -0700 This was partially fixed in clm4_5_16_r243 |
OK, this issue caused me trouble. I asked for some variables defined at gridcell level and asked for them at landunit level, and the model chokes in a horrible way on trying to write them. In debug mode it shows subscript overflow. But, it's not obvious which variable is the problem. This was for CMIP6 output with 8 different tapes and it took a while for me to identify that this was the actual underlying problem. So having the model die with a proper error will save tons of time to people that use 1D vector data. |
All that's left is better error checking. |
### Description of changes Changeing the github action to do annotated tags ### Specific notes All changes in github actions, testing done on merge.
Closing as the main problem was solved, only the error checking wasn't and that's now encapsulated in #2580 |
Erik Kluzek < erik > - 2010-03-31 17:03:18 -0600
Bugzilla Id: 1139
Bugzilla CC: dlawren, jedwards, mvertens, oleson, thoar,
Keith found that doing 1D vector history averaging for LAND and PFTS blow up...
so both this...
hist_dov2xy = .true.,.false.
hist_fincl2 = 'TG'
hist_mfilt = 1
hist_nhtfrq = 0,-24
hist_type1d_pertape = ' ','LAND'
and this...
hist_dov2xy = .true.,.false.
hist_fincl2 = 'TG'
hist_mfilt = 1
hist_nhtfrq = 0,-24
hist_type1d_pertape = ' ','PFTS'
FAIL, while setting that second field to ' ', 'GRID', or 'COLS' works.
Errors look like this for 'LAND' averaging...
And for 'PFTS' averaging...
The text was updated successfully, but these errors were encountered: