Skip to content
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 local inertial routing scheme to sbm_gwf concept. #371

Merged
merged 16 commits into from
Mar 26, 2024
Merged

Conversation

verseve
Copy link
Contributor

@verseve verseve commented Mar 14, 2024

Issue addressed

Fixes #344

Explanation

See issue #344.

Checklist

  • Updated tests or added new tests
  • Branch is up to date with master
  • Tests & pre-commit hooks pass
  • Updated documentation if needed
  • Updated changelog.md if needed

`graph_riv` is used for initialization land component local inertial model
Used for river local inertial routing, the river depth was set at zero in the code. Now a user can provide this boundary condition through the TOML file or NetCDF file with model parameters. Also, the `riverlength_bc` can be set through the NetCDF file with model parameters.
- Read boundary conditions for local inertial routing from NetCDF file.
- Change reading boundary conditions from TOML and NetCDF (different combinations are possible).
- make use of one `set_states` function for both model types.
- add test warm start `sbm_gwf` model type.
@verseve verseve marked this pull request as ready for review March 18, 2024 07:11
@verseve verseve requested a review from JoostBuitink March 18, 2024 07:11
Copy link
Contributor

@JoostBuitink JoostBuitink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this work, nice to see these routing options being supported in the sbm_gwf model as well! I have a couple of comments, let me know if anything is not clear!

docs/src/model_docs/lateral/local-inertial.md Outdated Show resolved Hide resolved
src/flow.jl Outdated Show resolved Hide resolved
src/sbm_gwf_model.jl Show resolved Hide resolved
src/sbm_model.jl Show resolved Hide resolved
test/runtests.jl Show resolved Hide resolved
vers-w added 5 commits March 20, 2024 14:27
Also throw a warning about boundary condition `riverlength_bc`.
Extraction of sub-domains for kinematic wave (use of threads) and use of  `network.land.slope` for lateral snow transport.
Copy link
Contributor

@JoostBuitink JoostBuitink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good to me!

@JoostBuitink
Copy link
Contributor

Ah maybe one small comment, maybe good to add that model.riverlength_bc has been deprecated in the changelog!

@verseve verseve merged commit 5678514 into master Mar 26, 2024
10 checks passed
@verseve verseve deleted the LIE_sbm_gwf branch March 26, 2024 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add local inertial routing to sbm_gwf concept
3 participants