Skip to content

Commit

Permalink
tweak as_dofdesc normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
majosm committed Apr 12, 2022
1 parent 204ce98 commit 0071928
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions grudge/dof_desc.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,16 +320,16 @@ def _normalize_domain_and_discr_tag(
if _contextual_volume_tag is None:
_contextual_volume_tag = VTAG_ALL

if domain in [DTAG_SCALAR, "scalar"]:
if domain == "scalar":
domain = DTAG_SCALAR
elif isinstance(domain, (BoundaryDomainTag, VolumeDomainTag)):
elif isinstance(domain, (ScalarDomainTag, BoundaryDomainTag, VolumeDomainTag)):
pass
elif domain == "vol":
elif domain in [VTAG_ALL, "vol"]:
domain = DTAG_VOLUME_ALL
elif domain in [FACE_RESTR_ALL, "all_faces"]:
domain = BoundaryDomainTag(FACE_RESTR_ALL)
domain = BoundaryDomainTag(FACE_RESTR_ALL, _contextual_volume_tag)
elif domain in [FACE_RESTR_INTERIOR, "int_faces"]:
domain = BoundaryDomainTag(FACE_RESTR_INTERIOR)
domain = BoundaryDomainTag(FACE_RESTR_INTERIOR, _contextual_volume_tag)
elif isinstance(domain, BTAG_PARTITION):
domain = BoundaryDomainTag(domain, _contextual_volume_tag)
elif domain in [BTAG_ALL, BTAG_REALLY_ALL, BTAG_NONE]:
Expand Down

0 comments on commit 0071928

Please sign in to comment.