4141# {{{ interface
4242
4343@dataclass (frozen = True )
44- class ElementTesselationInfo :
44+ class ElementTessellationInfo :
4545 """Describes how one element is split into multiple child elements.
4646
4747 .. attribute:: children
@@ -84,15 +84,15 @@ class GroupRefinementRecord:
8484 """
8585 .. attribute:: el_tess_info
8686
87- An instance of :class:`ElementTesselationInfo ` that describes the
88- tesselation of a single element into multiple child elements.
87+ An instance of :class:`ElementTessellationInfo ` that describes the
88+ tessellation of a single element into multiple child elements.
8989
9090 .. attribute:: element_mapping
9191
9292 A mapping from the original elements to the refined child elements.
9393 """
9494
95- el_tess_info : ElementTesselationInfo
95+ el_tess_info : ElementTessellationInfo
9696 # FIXME: This should really be a CSR data structure.
9797 element_mapping : List [List [int ]]
9898
@@ -102,23 +102,23 @@ def get_group_midpoints(meg: MeshElementGroup, el_tess_info, elements):
102102 """Compute the midpoints of the vertices of the specified elements.
103103
104104 :arg group: an instance of :class:`meshmode.mesh.MeshElementGroup`.
105- :arg el_tess_info: a :class:`ElementTesselationInfo `.
105+ :arg el_tess_info: a :class:`ElementTessellationInfo `.
106106 :arg elements: a list of (group-relative) element numbers.
107107
108108 :return: A :class:`dict` mapping element numbers to midpoint
109109 coordinates, with each value in the map having shape
110110 ``(ambient_dim, nmidpoints)``. The ordering of the midpoints
111- follows their ordering in the tesselation .
111+ follows their ordering in the tessellation .
112112 """
113113 raise NotImplementedError (type (meg ).__name__ )
114114
115115
116116@singledispatch
117- def get_group_tesselated_nodes (meg : MeshElementGroup , el_tess_info , elements ):
118- """Compute the nodes of the child elements according to the tesselation .
117+ def get_group_tessellated_nodes (meg : MeshElementGroup , el_tess_info , elements ):
118+ """Compute the nodes of the child elements according to the tessellation .
119119
120120 :arg group: An instance of :class:`meshmode.mesh.MeshElementGroup`.
121- :arg el_tess_info: a :class:`ElementTesselationInfo `.
121+ :arg el_tess_info: a :class:`ElementTessellationInfo `.
122122 :arg elements: A list of (group-relative) element numbers.
123123
124124 :return: A :class:`dict` mapping element numbers to node
@@ -131,9 +131,9 @@ def get_group_tesselated_nodes(meg: MeshElementGroup, el_tess_info, elements):
131131
132132
133133@singledispatch
134- def get_group_tesselation_info (meg : MeshElementGroup ):
134+ def get_group_tessellation_info (meg : MeshElementGroup ):
135135 """
136- :returns: a :class:`ElementTesselationInfo ` for the element group *meg*.
136+ :returns: a :class:`ElementTessellationInfo ` for the element group *meg*.
137137 """
138138 raise NotImplementedError (type (meg ).__name__ )
139139
@@ -181,7 +181,7 @@ def _get_ref_midpoints(shape, ref_vertices):
181181# }}}
182182
183183
184- # {{{ modepy.shape tesselation and resampling
184+ # {{{ modepy.shape tessellation and resampling
185185
186186@get_group_midpoints .register (_ModepyElementGroup )
187187def _ (meg : _ModepyElementGroup , el_tess_info , elements ):
@@ -203,7 +203,7 @@ def _(meg: _ModepyElementGroup, el_tess_info, elements):
203203 return dict (zip (elements , resampled_midpoints ))
204204
205205
206- @get_group_tesselated_nodes .register (_ModepyElementGroup )
206+ @get_group_tessellated_nodes .register (_ModepyElementGroup )
207207def _ (meg : _ModepyElementGroup , el_tess_info , elements ):
208208 shape = meg ._modepy_shape
209209 space = meg ._modepy_space
@@ -232,7 +232,7 @@ def _(meg: _ModepyElementGroup, el_tess_info, elements):
232232 }
233233
234234
235- @get_group_tesselation_info .register (_ModepyElementGroup )
235+ @get_group_tessellation_info .register (_ModepyElementGroup )
236236def _ (meg : _ModepyElementGroup ):
237237 shape = meg ._modepy_shape
238238 space = type (meg ._modepy_space )(meg .dim , 2 )
@@ -260,7 +260,7 @@ def _(meg: _ModepyElementGroup):
260260 # ensure order matches the one in midpoint_indices
261261 midpoint_vertex_pairs = [midpoint_to_vertex_pairs [m ] for m in midpoints ]
262262
263- return ElementTesselationInfo (
263+ return ElementTessellationInfo (
264264 ref_vertices = ref_vertices ,
265265 children = np .array (mp .submesh_for_shape (shape , ref_vertices )),
266266 orig_vertex_indices = np .array (orig_vertex_indices ),
0 commit comments