Skip to content

Commit d5f1746

Browse files
authored
Fix typos discovered by typos (#866)
1 parent 0f74ebf commit d5f1746

6 files changed

Lines changed: 16 additions & 16 deletions

File tree

src/Dofs/ConstraintHandler.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ function add!(ch::ConstraintHandler, dbc::Dirichlet)
863863
if !all(c -> 0 < c <= n_comp, components)
864864
error("components $(components) not within range of field :$(dbc.field_name) ($(n_comp) dimension(s))")
865865
end
866-
# Create BCValues for coordinate evalutation at dof-locations
866+
# Create BCValues for coordinate evaluation at dof-locations
867867
EntityType = eltype(dbc.faces) # (Face|Edge|Vertex)Index
868868
if EntityType <: Integer
869869
# BCValues are just dummy for nodesets so set to FaceIndex
@@ -1299,7 +1299,7 @@ system. For other types of periodicities the `transform` function can be used. T
12991299
`transform` function is applied on the coordinates of the image face, and is expected to
13001300
transform the coordinates to the matching locations in the mirror set.
13011301
1302-
The keyword `tol` specifies the tolerence (i.e. distance and deviation in face-normals)
1302+
The keyword `tol` specifies the tolerance (i.e. distance and deviation in face-normals)
13031303
between a image-face and mirror-face, for them to be considered matched.
13041304
13051305
See also: [`collect_periodic_faces!`](@ref), [`PeriodicDirichlet`](@ref).

src/Dofs/DofHandler.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ For most scalar-valued interpolations we can simply compensate for this by rever
621621
numbering on all edges that do not match the global edge direction, i.e. for the edge on
622622
element B in the example.
623623
624-
In addition, we also have to preverse the ordering at each dof location.
624+
In addition, we also have to preserve the ordering at each dof location.
625625
626626
For more details we refer to Scroggs et al. [Scroggs2022](@cite) as we follow the methodology
627627
described therein.
@@ -778,7 +778,7 @@ Return the index of the field with name `field_name` in a `DofHandler`. The inde
778778
field was found and the 2nd entry is the index of the field within the `SubDofHandler`.
779779
780780
!!! note
781-
Always finds the 1st occurence of a field within `DofHandler`.
781+
Always finds the 1st occurrence of a field within `DofHandler`.
782782
783783
See also: [`find_field(sdh::SubDofHandler, field_name::Symbol)`](@ref),
784784
[`_find_field(sdh::SubDofHandler, field_name::Symbol)`](@ref).
@@ -843,7 +843,7 @@ index, where `field_idx` represents the index of a field within a `SubDofHandler
843843
The `dof_range` of a field can vary between different `SubDofHandler`s. Therefore, it is
844844
advised to use the `field_idxs` or refer to a given `SubDofHandler` directly in case
845845
several `SubDofHandler`s exist. Using the `field_name` will always refer to the first
846-
occurence of `field` within the `DofHandler`.
846+
occurrence of `field` within the `DofHandler`.
847847
848848
Example:
849849
```jldoctest
@@ -903,7 +903,7 @@ getfieldinterpolation(sdh::SubDofHandler, field_name::Symbol) = getfieldinterpol
903903
Evaluate the approximated solution for field `fieldname` at the node
904904
coordinates of the grid given the Dof handler `dh` and the solution vector `u`.
905905
906-
Return a vector of length `getnnodes(grid)` where entry `i` contains the evalutation of the
906+
Return a vector of length `getnnodes(grid)` where entry `i` contains the evaluation of the
907907
approximation in the coordinate of node `i`. If the field does not live on parts of the
908908
grid, the corresponding values for those nodes will be returned as `NaN`s.
909909
"""
@@ -925,7 +925,7 @@ function _evaluate_at_grid_nodes(dh::DofHandler, u::Vector{T}, fieldname::Symbol
925925
vtk_dim = n_c == 2 ? 3 : n_c # VTK wants vectors padded to 3D
926926
data = fill(NaN * zero(T), vtk_dim, getnnodes(get_grid(dh)))
927927
else
928-
# Just evalutation at grid nodes
928+
# Just evaluation at grid nodes
929929
data = fill(NaN * zero(RT), getnnodes(get_grid(dh)))
930930
end
931931
# Loop over the subdofhandlers

src/FEValues/FunctionValues.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ sdim_from_gradtype(::Type{<:AbstractTensor{<:Any,sdim}}) where sdim = sdim
9999
sdim_from_gradtype(::Type{<:SVector{sdim}}) where sdim = sdim
100100
sdim_from_gradtype(::Type{<:SMatrix{<:Any,sdim}}) where sdim = sdim
101101

102-
# For performance, these must be fully inferrable for the compiler.
102+
# For performance, these must be fully inferable for the compiler.
103103
# args: valname (:CellValues or :FaceValues), shape_gradient_type, eltype(x)
104104
function check_reinit_sdim_consistency(valname, gradtype::Type, ::Type{<:Vec{sdim}}) where {sdim}
105105
check_reinit_sdim_consistency(valname, Val(sdim_from_gradtype(gradtype)), Val(sdim))

src/FEValues/InterfaceValues.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function reinit!(
135135
# TODO: This is the bottleneck, cache it?
136136
@assert length(quad_points_a) <= length(quad_points_b)
137137

138-
# Re-evalutate shape functions in the transformed quadrature points
138+
# Re-evaluate shape functions in the transformed quadrature points
139139
precompute_values!(get_fun_values(iv.there), quad_points_b)
140140
precompute_values!(get_geo_mapping(iv.there), quad_points_b)
141141

test/test_deprecations.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using Ferrite, Test
33
@testset "Deprecations" begin
44

55
@testset "Deprecation of auto-vectorized methods" begin
6-
# Deprecation of auto-selecing the interpolation
6+
# Deprecation of auto-selecting the interpolation
77
grid = generate_grid(Quadrilateral, (1, 1))
88
dh = DofHandler(grid)
99
@test_deprecated r"interpolation explicitly, and vectorize it" add!(dh, :u, 2)

test/test_interfacevalues.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,13 @@
130130
dim = getcelltypedim(cell_shape)
131131
grid = generate_grid(cell_shape, ntuple(i -> 2, dim))
132132
ip = scalar_interpol isa DiscontinuousLagrange ? Lagrange{Ferrite.getrefshape(scalar_interpol), Ferrite.getorder(scalar_interpol)}() : scalar_interpol
133-
@testset "faces nodes indicies" begin
133+
@testset "faces nodes indices" begin
134134
cell = getcells(grid, 1)
135135
geom_ip_faces_indices = Ferrite.facedof_indices(ip)
136136
Ferrite.getdim(ip) > 1 && (geom_ip_faces_indices = Tuple([face[collect(face .∉ Ref(interior))] for (face, interior) in [(geom_ip_faces_indices[i], Ferrite.facedof_interior_indices(ip)[i]) for i in 1:nfaces(ip)]]))
137-
faces_indicies = Ferrite.reference_faces(Ferrite.getrefshape(Ferrite.default_interpolation(typeof(cell))))
137+
faces_indices = Ferrite.reference_faces(Ferrite.getrefshape(Ferrite.default_interpolation(typeof(cell))))
138138
node_ids = Ferrite.get_node_ids(cell)
139-
@test getindex.(Ref(node_ids), collect.(faces_indicies)) == Ferrite.faces(cell) == getindex.(Ref(node_ids), collect.(geom_ip_faces_indices))
139+
@test getindex.(Ref(node_ids), collect.(faces_indices)) == Ferrite.faces(cell) == getindex.(Ref(node_ids), collect.(geom_ip_faces_indices))
140140
end
141141
@testset "error paths" begin
142142
cell = getcells(grid, 1)
@@ -161,14 +161,14 @@
161161
quad_rule = Ferrite.create_face_quad_rule(RefTetrahedron, weights, points)
162162
dim = getcelltypedim(cell_shape)
163163
grid = generate_grid(cell_shape, ntuple(i -> 2, dim))
164-
@testset "faces nodes indicies" begin
164+
@testset "faces nodes indices" begin
165165
ip = scalar_interpol isa DiscontinuousLagrange ? Lagrange{Ferrite.getrefshape(scalar_interpol), Ferrite.getorder(scalar_interpol)}() : scalar_interpol
166166
cell = getcells(grid, 1)
167167
geom_ip_faces_indices = Ferrite.facedof_indices(ip)
168168
Ferrite.getdim(ip) > 1 && (geom_ip_faces_indices = Tuple([face[collect(face .∉ Ref(interior))] for (face, interior) in [(geom_ip_faces_indices[i], Ferrite.facedof_interior_indices(ip)[i]) for i in 1:nfaces(ip)]]))
169-
faces_indicies = Ferrite.reference_faces(Ferrite.getrefshape(Ferrite.default_interpolation(typeof(cell))))
169+
faces_indices = Ferrite.reference_faces(Ferrite.getrefshape(Ferrite.default_interpolation(typeof(cell))))
170170
node_ids = Ferrite.get_node_ids(cell)
171-
@test getindex.(Ref(node_ids), collect.(faces_indicies)) == Ferrite.faces(cell) == getindex.(Ref(node_ids), collect.(geom_ip_faces_indices))
171+
@test getindex.(Ref(node_ids), collect.(faces_indices)) == Ferrite.faces(cell) == getindex.(Ref(node_ids), collect.(geom_ip_faces_indices))
172172
end
173173
@testset "error paths" begin
174174
cell = getcells(grid, 1)

0 commit comments

Comments
 (0)