Skip to content

Improve lake gwt#562

Open
rubencalje wants to merge 3 commits into
devfrom
improve_lake_gwt
Open

Improve lake gwt#562
rubencalje wants to merge 3 commits into
devfrom
improve_lake_gwt

Conversation

@rubencalje

@rubencalje rubencalje commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

This PR improves the support for a GroundWater Transport (GWT) model in the Lake (LAK) package. The user can now supply the concentration of the fluxes in and out of the lake, in the same way he can supply the fluxes for the GroundWater Flow (GWF) model.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This pull request extends lake_from_gdf to better support the MF6 Lake Transport (LKT/GWT) workflow by allowing users to provide concentration inputs for lake-related fluxes (analogous to how fluxes are provided for the LAK/GWF model).

Changes:

  • Adds support for GWT-specific lake setting columns (e.g., GWT_CONCENTRATION, GWT_RUNOFF, GWT_EXT-INFLOW) and writes them into lakeperioddata.
  • Improves outlet handling by recognizing lakeout = "-1" (string) as a sentinel meaning “remove from model”.
  • Generalizes stress-period value resolution so settings can be taken from the dataset (when present) or treated as literal values.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread nlmod/gwf/lake.py
Comment on lines 224 to 231
lakeout = _get_and_check_single_value(lake_gdf, "lakeout")
if isinstance(lakeout, str):
if isinstance(lakeout, str) and lakeout == "-1":
# an integer -1 could have been converted to a string after saving gdf to disk
lakeout = int(lakeout)
elif isinstance(lakeout, str):
# when lakeout is a string, it represents the boundname
# we need to find the lakeno that belongs to this boundname
boundnameout = lakeout
Comment thread nlmod/gwf/lake.py Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.

3 participants