Skip to content

Commit

Permalink
remove vestigial _qelements
Browse files Browse the repository at this point in the history
  • Loading branch information
kbarnhart committed Aug 21, 2024
1 parent f69c708 commit 145233c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/python/geoclaw/xarray_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,7 @@
from clawpack.geoclaw import fgmax_tools, fgout_tools
from xarray.backends import BackendEntrypoint

_qelements_dclaw = ["h", "hu", "hv", "hm", "pb", "hchi", "bdif", "eta", "B"]
_qelements_geoclaw = ["h", "hu", "hv", "eta", "B"]
_qelements_geoclaw_bouss = ["h", "hu", "hv", "huc", "hvc", "eta", "B"]

_qunits = {
"h": "meters",
"hu": "meters squared per second",
Expand Down Expand Up @@ -237,14 +235,6 @@ def open_dataset(
except:
mask = np.ones((ni, nj), dtype=bool)

# determine if geoclaw, geoclaw-bouss, or dclaw
if qmap == "dclaw":
_qelements = _qelements_dclaw
elif qmap == "geoclaw":
_qelements = _qelements_geoclaw
elif qmap == "geoclaw-bouss":
_qelements = _qelements_geoclaw_bouss

# create data_vars dictionary
data_vars = {}
for i, i_var in enumerate(fgout_grid.q_out_vars):
Expand Down

0 comments on commit 145233c

Please sign in to comment.