From f9da244347f6e076e8e5d65562efc06640b07677 Mon Sep 17 00:00:00 2001 From: Oscar Sanchez <39230212+oscarfasanchez@users.noreply.github.com> Date: Tue, 21 Jan 2025 21:25:59 +0800 Subject: [PATCH] fix(cvfdutil): fix skip_hanging_node_check (#2423) --- flopy/utils/cvfdutil.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flopy/utils/cvfdutil.py b/flopy/utils/cvfdutil.py index 76d31a84a..de02cb6ea 100644 --- a/flopy/utils/cvfdutil.py +++ b/flopy/utils/cvfdutil.py @@ -223,10 +223,11 @@ def to_cvfd( # Now, go through each vertex and look at the cells that use the vertex. # For quadtree-like grids, there may be a need to add a new hanging node # vertex to the larger cell. + vertexdict_keys = list(vertexdict.keys()) if not skip_hanging_node_check: if verbose: print("Checking for hanging nodes.") - vertexdict_keys = list(vertexdict.keys()) + finished = False while not finished: finished = True