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

feat(gridutil): add function to help create DISV grid #1952

Merged
merged 2 commits into from
Sep 18, 2023

Conversation

langevin-usgs
Copy link
Contributor

This PR adds a simple function that constructs vertices, cell2d, and other arguments needed to construct a flopy ModflowGwfdisv object. This function is mostly designed for MODFLOW testing purposes, but it may also be generally useful for constructing a DISV grid. Could be enhanced to remove IDOMAIN=0 cells and to rotate the resulting grid.

    disvkwargs = get_disv_kwargs(
        nlay, nrow, ncol, delr, delc, top, botm, xoff, yoff,
    )
    disv = flopy.mf6.ModflowGwfdisv(gwf, **disvkwargs)

@codecov
Copy link

codecov bot commented Sep 18, 2023

Codecov Report

Merging #1952 (a8148c5) into develop (2fa32da) will decrease coverage by 1.8%.
The diff coverage is 90.6%.

@@            Coverage Diff            @@
##           develop   #1952     +/-   ##
=========================================
- Coverage     72.6%   70.9%   -1.8%     
=========================================
  Files          257     257             
  Lines        57711   57754     +43     
=========================================
- Hits         41927   40968    -959     
- Misses       15784   16786   +1002     
Files Changed Coverage Δ
flopy/utils/gridutil.py 96.0% <90.6%> (-2.5%) ⬇️

... and 55 files with indirect coverage changes

@langevin-usgs langevin-usgs merged commit e20a298 into modflowpy:develop Sep 18, 2023
15 of 21 checks passed
@langevin-usgs langevin-usgs deleted the feat-gridutil branch September 22, 2023 12:47
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.

1 participant