Skip to content

Commit 9e8d6fa

Browse files
committed
tag a few more axes
1 parent a3cff0d commit 9e8d6fa

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

meshmode/discretization/connection/direct.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,14 @@ def _global_from_element_indices(
167167
np_full_from_element_indices[~np_from_el_present] = 0
168168

169169
from_el_present = actx.freeze(
170-
actx.tag(NameHint("from_el_present"),
171-
actx.from_numpy(
172-
np_from_el_present.astype(np.int8))))
170+
actx.tag_axis(0, DiscretizationElementAxisTag(),
171+
actx.tag(NameHint("from_el_present"),
172+
actx.from_numpy(
173+
np_from_el_present.astype(np.int8)))))
173174
full_from_element_indices = actx.freeze(
174-
actx.tag(NameHint("from_el_indices"),
175-
actx.from_numpy(np_full_from_element_indices)))
175+
actx.tag_axis(0, DiscretizationElementAxisTag(),
176+
actx.tag(NameHint("from_el_indices"),
177+
actx.from_numpy(np_full_from_element_indices))))
176178

177179
self._global_from_element_indices_cache = (
178180
from_el_present, full_from_element_indices)

0 commit comments

Comments
 (0)