From 26e73e915e71eabde278368cfe8cf14d294c3be7 Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Thu, 10 Aug 2023 20:11:37 +0300 Subject: [PATCH] fix typos commited by codespell codespell --uri-ignore-words-list '*' meshmode doc test --- doc/interop.rst | 2 +- meshmode/discretization/connection/direct.py | 6 +++--- meshmode/mesh/generation.py | 2 +- meshmode/mesh/tools.py | 4 ++-- test/test_meshmode.py | 2 +- test/test_modal.py | 2 +- test/test_partition.py | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/interop.rst b/doc/interop.rst index 0680e0966..a812d59f4 100644 --- a/doc/interop.rst +++ b/doc/interop.rst @@ -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 diff --git a/meshmode/discretization/connection/direct.py b/meshmode/discretization/connection/direct.py index a84b2282b..371787e9d 100644 --- a/meshmode/discretization/connection/direct.py +++ b/meshmode/discretization/connection/direct.py @@ -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] @@ -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 @@ -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(), }) diff --git a/meshmode/mesh/generation.py b/meshmode/mesh/generation.py index e2f09e1f3..23f1c933d 100644 --- a/meshmode/mesh/generation.py +++ b/meshmode/mesh/generation.py @@ -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 # | \ | diff --git a/meshmode/mesh/tools.py b/meshmode/mesh/tools.py index 032c4f242..d2b56fe7d 100644 --- a/meshmode/mesh/tools.py +++ b/meshmode/mesh/tools.py @@ -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 diff --git a/test/test_meshmode.py b/test/test_meshmode.py index 1e7350b6d..72d15ec35 100644 --- a/test/test_meshmode.py +++ b/test/test_meshmode.py @@ -205,7 +205,7 @@ def f(x): # }}} -# {{{ boundary-to-all-faces connecttion +# {{{ boundary-to-all-faces connection @pytest.mark.parametrize("group_factory", [ InterpolatoryQuadratureSimplexGroupFactory, diff --git a/test/test_modal.py b/test/test_modal.py index f8ea61cdd..36ff124d4 100644 --- a/test/test_modal.py +++ b/test/test_modal.py @@ -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 diff --git a/test/test_partition.py b/test/test_partition.py index b8a4e1830..49ddd48c5 100644 --- a/test/test_partition.py +++ b/test/test_partition.py @@ -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