-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add floodplain discharge to inflow reservoirs and lakes #368
Conversation
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.
LGTM! Many thanks for fixing this :)
This way the inflow can be based on the current `q` instead of `q0` (`q` at the previous time step). Moved inflow computation of reservoir and lake to separate function for `ShallowWaterRiver`.
Thanks for reviewing @hboisgon! I have now changed the order of the update of reservoirs and lakes so the inflow is based on current |
I think unless the reservoir or lake are incorporated directly in the local inertial loop like it is in kinematic wave, there will always be some mistakes right? Maybe not for the reservoir anymore but for all the downstream cells as then the outflow of the reservoir will be given with delays to the downstream cells. I am happy with your first implementation, maybe when you replace or revise the LoopVectorization approach you could come back to it? Anyway let me know if I can help with testing if you find something else in the meantime and again thanks for looking into this! |
For local inertial routing the inflow has been corrected: it should also include the `to_river` variable (from subsurface and overland flow), because the water body cell is not included in the local inertial routing solution (boundary condition).
For the local inertial routing the |
Issue addressed
Fixes #367
Explanation
See also issue #367, fixed the inflow of reservoirs and lakes when floodplain routing as part of local inertial routing is used, the floodplain discharge was not added to the inflow.
Checklist
master