Skip to content

Commit 60c6617

Browse files
mjrenomjreno
authored andcommitted
fix structured dataset
1 parent 642c941 commit 60c6617

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

flopy/discretization/structuredgrid.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,6 +1781,8 @@ def _layered_mesh_dataset(self, ds, modeltime=None):
17811781
ds["mesh_face_nodes"].attrs["_FillValue"] = FILLNA_INT32
17821782
ds["mesh_face_nodes"].attrs["start_index"] = np.int32(1)
17831783

1784+
return ds
1785+
17841786
def _structured_dataset(self, ds, modeltime=None):
17851787
lenunits = {0: "m", 1: "ft", 2: "m", 3: "m"}
17861788

@@ -1838,6 +1840,8 @@ def _structured_dataset(self, ds, modeltime=None):
18381840
ds["x"].attrs["long_name"] = "Easting"
18391841
ds["x"].attrs["bounds"] = "x_bnds"
18401842

1843+
return ds
1844+
18411845
def _set_structured_iverts(self):
18421846
"""
18431847
Build a list of the vertices that define each model cell and the x, y

0 commit comments

Comments
 (0)