-
Notifications
You must be signed in to change notification settings - Fork 6
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
fixing broken lake tiles in offline #335 and addresses #347 #348
Conversation
commit 4aaccb5 produces bitwise equivalence on a case where the tumbarumba test case has been converted to a lake (iveg=16) with very small canopy height (hc=0.001) |
@ccarouge @JhanSrbinovsky @rml599gh @bibivking - in implementing this fix to the offline code I've noticed that the coupled model sets the lake tile water balance at field capacity ( |
commit b326199 enforces saturation at the start of the time step. The original time series of soil temperature and moisture were A comparison of original vs revised soil layer 1 moisture is |
@@ -10,6 +10,8 @@ SUBROUTINE surfbv (dels, met, ssnow, soil, veg, canopy ) | |||
|
|||
USE smoisturev_mod, ONLY: smoisturev | |||
USE cable_common_module | |||
USE grid_constants_mod_cbl, ONLY : lakes_cable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My only comment with this is that we've just pivoted in AM3 to using a namelist input to define lakes_cable. Something which will need to be ported to offline anyway - so the is a fair solution until that happens
I am a bit concerned about the impact on the deepest soil layer moisture seen above - and the consequent dry down of layers 4 and 5. This is because of the lines in Note that this removal does not respect the Obvious tests would be
and/or
and/or
|
Looking to separate concerns - will focus this issue on implementing the same physics as in coupled model. We will leave the investigation as to whether to use |
Benchcab tests ran successfully - noting that this is a largely meaningless assessment given that none of the sites should encounter the revised code. These required the benchmark_cable_qsub.sh.o121637899.txt me.org is still down so sending to review. |
In the current It should be possible to implement a minor variation to the changeset here to use |
sounds like a solid fix |
@har917 Sorry I'm getting to this a bit late. I'm a bit puzzled with the code in I read this code for lake in this way:
will potentially remove some water from the 6th layer and then
will potentially remove more water. So I don't see these as being redundant. Maybe in reality, there will never be enough water to draw twice and one of this will be 0 but there is nothing in the code stopping it to happen. Is the logic here trying to get Unit issue?
This "wb-wb/(zse*1000)" is very weird., I'm not sure the division by I'm not sure this should be part of this fix or come as a different issue or if I'm completely wrong, so looking for your input first. |
@ccarouge A couple of quick replies:
if we then go and do the second extraction. Since
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good.
@ccarouge one final comment on units: you said you were concerned about units in
You missed a bracket - it should be
so everything works out |
CABLE
Description
This PR aims to achieve two tasks
Fixes #341
Addresses #347
Type of change
Checklist
Please add a reviewer when ready for review.
📚 Documentation preview 📚: https://cable--348.org.readthedocs.build/en/348/