Skip to content

Commit

Permalink
fix typos commited by codespell
Browse files Browse the repository at this point in the history
codespell --uri-ignore-words-list '*' meshmode doc test
  • Loading branch information
alexfikl authored and inducer committed Aug 12, 2023
1 parent 6e8a963 commit 26e73e9
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion doc/interop.rst
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ roughly as so:
is used to define what meshmode calls the unit nodes and unit
vertices. It is worth noting that :mod:`firedrake` does
not require a positive orientation of elements and that its
reference traingle is different than specified in :mod:`modepy`.
reference triangle is different than specified in :mod:`modepy`.

(2) A `~firedrake.mesh.MeshTopology`
which holds information about connectivity
Expand Down
6 changes: 3 additions & 3 deletions meshmode/discretization/connection/direct.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ def _per_target_group_pick_info(
self, actx: ArrayContext, i_tgrp: int
) -> Optional[Sequence[_FromGroupPickData]]:
"""Returns a list of :class:`_FromGroupPickData`, one per source group
from which data ist to be transferred, or *None*, if conditions for
from which data is to be transferred, or *None*, if conditions for
this representation are not met.
"""
cgrp = self.groups[i_tgrp]
Expand Down Expand Up @@ -596,7 +596,7 @@ def __call__(
"""
# _force_use_loopy, _force_no_merged_batches:
# private arguments only used to ensure test coverge of all code paths.
# private arguments only used to ensure test coverage of all code paths.

# {{{ recurse into array containers

Expand Down Expand Up @@ -923,7 +923,7 @@ def knl():
return lp.tag_inames(t_unit, {
"iel": ConcurrentElementInameTag(),
"idof": ConcurrentDOFInameTag(),
# FIXME: jdof is also concurrent, but the tranform in
# FIXME: jdof is also concurrent, but the transform in
# `meshmode.array_context` does not handle two of them right now
# "jdof": ConcurrentDOFInameTag(),
})
Expand Down
2 changes: 1 addition & 1 deletion meshmode/mesh/generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ def idx(i: int, j: int) -> int:
return i + j * (n_major + 1)

if issubclass(group_cls, SimplexElementGroup):
# NOTE: this makes two triangles from a the square like
# NOTE: this makes two triangles from a square like
# (i, j+1) (i+1, j+1)
# o---------o
# | \ |
Expand Down
4 changes: 2 additions & 2 deletions meshmode/mesh/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def rand_rotation_matrix(ambient_dim, deflection=1.0, randnums=None):
"""Creates a random rotation matrix.
:arg deflection: the magnitude of the rotation. For 0, no rotation; for 1,
competely random rotation. Small deflection => small perturbation.
:arg randnums: 3 random numbers in the range [0, 1]. If `None`, they will be
completely random rotation. Small deflection => small perturbation.
:arg randnums: 3 random numbers in the range [0, 1]. If *None*, they will be
auto-generated.
"""
# from https://www.realtimerendering.com/resources/GraphicsGems/gemsiii/rand_rotation.c # noqa: E501
Expand Down
2 changes: 1 addition & 1 deletion test/test_meshmode.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def f(x):
# }}}


# {{{ boundary-to-all-faces connecttion
# {{{ boundary-to-all-faces connection

@pytest.mark.parametrize("group_factory", [
InterpolatoryQuadratureSimplexGroupFactory,
Expand Down
2 changes: 1 addition & 1 deletion test/test_modal.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def f(x):
# Map to modal
modal_f = nodal_to_modal_conn(nodal_f)

# Now we compute the basis function indices corresonding
# Now we compute the basis function indices corresponding
# to modes > truncated_order
mgrp, = modal_disc.groups
mgrp_mode_ids = mgrp.basis_obj().mode_ids
Expand Down
2 changes: 1 addition & 1 deletion test/test_partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
logger = logging.getLogger(__name__)

# Is there a smart way of choosing this number?
# Currenly it is the same as the base from MPIBoundaryCommSetupHelper
# Currently it is the same as the base from MPIBoundaryCommSetupHelper
TAG_BASE = 83411
TAG_SEND_REMOTE_NODES = TAG_BASE + 3
TAG_SEND_LOCAL_NODES = TAG_BASE + 4
Expand Down

0 comments on commit 26e73e9

Please sign in to comment.