Skip to content

Commit

Permalink
tag a few more axes
Browse files Browse the repository at this point in the history
  • Loading branch information
majosm committed May 31, 2023
1 parent 2e8e97f commit af5fc83
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions meshmode/discretization/connection/direct.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,14 @@ def _global_from_element_indices(
np_full_from_element_indices[~np_from_el_present] = 0

from_el_present = actx.freeze(
actx.tag(NameHint("from_el_present"),
actx.from_numpy(
np_from_el_present.astype(np.int8))))
actx.tag_axis(0, DiscretizationElementAxisTag(),
actx.tag(NameHint("from_el_present"),
actx.from_numpy(
np_from_el_present.astype(np.int8)))))
full_from_element_indices = actx.freeze(
actx.tag(NameHint("from_el_indices"),
actx.from_numpy(np_full_from_element_indices)))
actx.tag_axis(0, DiscretizationElementAxisTag(),
actx.tag(NameHint("from_el_indices"),
actx.from_numpy(np_full_from_element_indices))))

self._global_from_element_indices_cache = (
from_el_present, full_from_element_indices)
Expand Down

0 comments on commit af5fc83

Please sign in to comment.