Soil levels in LFRic2UM#435
Soil levels in LFRic2UM#435Lottie Turner (mo-lottieturner) wants to merge 12 commits intoMetOffice:mainfrom
Conversation
|
|
||
| else if (lookup_int(lbvc) == 6) then ! Deep soil levels | ||
| ! These are hardcoded to the settings in a UM dump file with 4 soil levels as | ||
| ! that is currently hardcoded in elsewhere in lfric2um. If at some point that |
There was a problem hiding this comment.
An extra "in" that isn't needed:
| ! that is currently hardcoded in elsewhere in lfric2um. If at some point that | |
| ! that is currently hardcoded **in** elsewhere in lfric2um. If at some point that |
There was a problem hiding this comment.
And if you did know where it is hardcoded "elsewhere", it would be helpful to say, as increasing soil level number is on a long-term development list and we look to be building up some technical debt in this regard
There was a problem hiding this comment.
I think the two ins is technically correct - it is [hardcoded in] elsewhere in lfric2um - but it does read better with one in. I'll change that. The hardcoding is in lfric2um_initialise_um_mod.f90, but I think this could easily be changed to be read in from the rose-app.conf file - #266 adds a couple of other variables being read in from there, so could easily do that there (or split that change into another ticket, more likely).
If there was another scheme added, how would they be told apart from the raw file? As in, would it still use the vertical coord type code 6, or would it have its own? If still using 6, would the only difference be the number of layers? or would there be a different flag somewhere?
|
|
||
| [namelist:configure_lfric2um] | ||
| stash_list=2,3,150,4,389,391,392,393,394,25,265,266,267,268,26,493,221, | ||
| =20,9,279,278,281,213,508,49 |
There was a problem hiding this comment.
Just wondering if this list might be better in numerical order? Or perhaps group the stash on soil levels separately? The order currently seems arbitrary?
There was a problem hiding this comment.
The order corresponds to the order of the fields in the iodef.xml file - which is probably somewhat arbitrary in itself, but the easiest way to make the stashcodes human readable and check you're not missing any is to get them to follow the same order as that (2,3,150 are east, north and upward winds, so it makes logical sense to have them grouped together, despite the numbers being different)
There was a problem hiding this comment.
also the rose config-dump checker doesn't allow you to have separate lines for separate sections, unfortunately, otherwise I'd have done that. Feel free to have a look at the iodef file and suggest a more logical order for those fields though!
PR Summary
Sci/Tech Reviewer: Adrian Lock (@Adrian-Lock)
Code Reviewer: svadams (@svadams)
This PR adds the functionality to handle soil multidata fields in LFRic2UM (and also sets up some of the infrastructure to handle the other kinds of multidata/pseudolevel fields). This will add new lfricinputs kgos
Code Quality Checklist
Testing
trac.log
Test Suite Results - lfric_apps - t435_lfric2um_soil_levels/run10
Suite Information
Task Information
❌ failed tasks - 5
⌛ waiting tasks - 2
Security Considerations
Performance Impact
AI Assistance and Attribution
Some of the content of this change has been produced with the assistance of Generative AI tool name (e.g., Met Office Github Copilot Enterprise, Github Copilot Personal, ChatGPT GPT-4, etc) and I have followed the Simulation Systems AI policy (including attribution labels)Documentation
PSyclone Approval
Sci/Tech Review
(Please alert the code reviewer via a tag when you have approved the SR)
Code Review