Skip to content

Commit

Permalink
Add BounaryTag type alias, annotate Mesh.groups
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Mar 15, 2022
1 parent 65565cc commit 40f7690
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion meshmode/mesh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from abc import ABC, abstractmethod
from dataclasses import dataclass, replace, field
from typing import Any, ClassVar, Hashable, Optional, Tuple, Type
from typing import Any, ClassVar, Hashable, Optional, Tuple, Type, Sequence

import numpy as np
import numpy.linalg as la
Expand Down Expand Up @@ -66,6 +66,9 @@

# {{{ element tags

BoundaryTag = Hashable


class BTAG_NONE: # noqa: N801
"""A boundary tag representing an empty boundary or volume."""

Expand Down Expand Up @@ -906,6 +909,8 @@ class Mesh(Record):
.. automethod:: __ne__
"""

groups: Sequence[MeshElementGroup]

face_id_dtype = np.int8

def __init__(self, vertices, groups, *, skip_tests=False,
Expand Down

0 comments on commit 40f7690

Please sign in to comment.