Skip to content

Commit

Permalink
add workaround for flopy ncelldim shape issue in exg dfns
Browse files Browse the repository at this point in the history
  • Loading branch information
mjreno authored and mjreno committed Dec 18, 2023
1 parent facc832 commit 9b82be9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions doc/mf6io/mf6ivar/dfn/exg-gwfgwf.dfn
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ description
block exchangedata
name cellidm1
type integer
shape (ncelldim)
in_record true
tagged false
reader urword
Expand All @@ -249,7 +248,6 @@ numeric_index true
block exchangedata
name cellidm2
type integer
shape (ncelldim)
in_record true
tagged false
reader urword
Expand Down
2 changes: 0 additions & 2 deletions doc/mf6io/mf6ivar/dfn/exg-gwtgwt.dfn
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ description
block exchangedata
name cellidm1
type integer
shape (ncelldim)
in_record true
tagged false
reader urword
Expand All @@ -210,7 +209,6 @@ numeric_index true
block exchangedata
name cellidm2
type integer
shape (ncelldim)
in_record true
tagged false
reader urword
Expand Down
4 changes: 4 additions & 0 deletions utils/idmloader/scripts/dfn2f90.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@ def _set_blk_param_strs(self, blockname, component, subcomponent):

shape = ""
shapelist = []
# workaround for Flopy shape issue with exg dfns:
if c.upper() == "EXG":
if vn == "CELLIDM1" or vn == "CELLIDM2":
v["shape"] = "(ncelldim)"
if "shape" in v:
shape = v["shape"]
shape = shape.replace("(", "")
Expand Down

0 comments on commit 9b82be9

Please sign in to comment.