Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modflowapi/extensions/apimodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def X(self):
"""
x = self.mf6.get_value(self.mf6.get_var_address("X", self.name))
array = np.full(self.size, np.nan)
array[self.nodetouser] = x
array[self.nodetouser] = x[: self.nodetouser.size]
return array.reshape(self.shape)

def _set_node_mapping(self):
Expand Down
6 changes: 6 additions & 0 deletions modflowapi/extensions/apisimulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@ def load(mf6):
id_var_addr = mf6.get_var_address("ID", name)
if name.startswith("SLN"):
continue
elif name.startswith("GWTIM") or name.startswith("GWFIM") or name.startswith("GWEIM"):
continue
elif name.startswith("GWFCON") or name.startswith("GWTCON") or name.startswith("GWECON"):
continue
if id_var_addr not in variables:
continue

Expand All @@ -301,6 +305,8 @@ def load(mf6):
id_var_addr = mf6.get_var_address("ID", name)
if name.lower() in models or name == "TDIS":
continue
if name.startswith("GWTIM") or name.startswith("GWFIM") or name.startswith("GWEIM"):
continue
if id_var_addr not in variables:
continue

Expand Down