From 9b82be9253c901c0cb455878bd3f9a7a5a810589 Mon Sep 17 00:00:00 2001 From: mjreno Date: Fri, 15 Dec 2023 16:37:11 -0500 Subject: [PATCH] add workaround for flopy ncelldim shape issue in exg dfns --- doc/mf6io/mf6ivar/dfn/exg-gwfgwf.dfn | 2 -- doc/mf6io/mf6ivar/dfn/exg-gwtgwt.dfn | 2 -- utils/idmloader/scripts/dfn2f90.py | 4 ++++ 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/mf6io/mf6ivar/dfn/exg-gwfgwf.dfn b/doc/mf6io/mf6ivar/dfn/exg-gwfgwf.dfn index 3da1d58ac46..2232bfbdf90 100644 --- a/doc/mf6io/mf6ivar/dfn/exg-gwfgwf.dfn +++ b/doc/mf6io/mf6ivar/dfn/exg-gwfgwf.dfn @@ -237,7 +237,6 @@ description block exchangedata name cellidm1 type integer -shape (ncelldim) in_record true tagged false reader urword @@ -249,7 +248,6 @@ numeric_index true block exchangedata name cellidm2 type integer -shape (ncelldim) in_record true tagged false reader urword diff --git a/doc/mf6io/mf6ivar/dfn/exg-gwtgwt.dfn b/doc/mf6io/mf6ivar/dfn/exg-gwtgwt.dfn index 7fbbc05a5e3..f5aeb241996 100644 --- a/doc/mf6io/mf6ivar/dfn/exg-gwtgwt.dfn +++ b/doc/mf6io/mf6ivar/dfn/exg-gwtgwt.dfn @@ -198,7 +198,6 @@ description block exchangedata name cellidm1 type integer -shape (ncelldim) in_record true tagged false reader urword @@ -210,7 +209,6 @@ numeric_index true block exchangedata name cellidm2 type integer -shape (ncelldim) in_record true tagged false reader urword diff --git a/utils/idmloader/scripts/dfn2f90.py b/utils/idmloader/scripts/dfn2f90.py index 79fccdaf367..5b5a0c58c99 100644 --- a/utils/idmloader/scripts/dfn2f90.py +++ b/utils/idmloader/scripts/dfn2f90.py @@ -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("(", "")