Skip to content

Commit c5b054d

Browse files
authored
Merge pull request #9 from jpthiele/codespell
Add and apply codespell config
2 parents 0315272 + 5893610 commit c5b054d

17 files changed

+29
-29
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
## October 28, 2024
1717

18-
Moved repositiory from https://github.com/chmerdon/ExtendableFEMBase.jl to https://github.com/WIAS-PDELib/ExtendableFEMBase.jl.
18+
Moved repository from https://github.com/chmerdon/ExtendableFEMBase.jl to https://github.com/WIAS-PDELib/ExtendableFEMBase.jl.
1919
[WIAS-PDELib](https://github.com/WIAS-PDELib/) is a github organization created to collectively manage the Julia packages developed under
2020
the lead of the [WIAS Numerical Mathematics and Scientific Computing](https://wias-berlin.de/research/rgs/fg3) research group.
2121
According to the [github docs on repository transfer](https://docs.github.com/en/repositories/creating-and-managing-repositories/transferring-a-repository#whats-transferred-with-a-repository),

docs/src/examples_intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The examples have been designed with the following issues in mind:
1414

1515
## Running the examples
1616

17-
In order to run `ExampleXXX`, peform the following steps:
17+
In order to run `ExampleXXX`, perform the following steps:
1818

1919
- Download the example file (e.g. via the source code link at the top)
2020
- Make sure all used packages are installed in your Julia environment

docs/src/fems.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ AbstractFiniteElement
4141

4242
#### Remarks
4343
- each type depends on one/two or three parameters, the first one is always the number of components (ncomponents) that determines if the
44-
finite element is scalar- or veector-valued; some elements additionaly require the parameter edim <: Int if they are structurally different in different space dimensions; arbitrary order elements require a third parameter that determines the order
44+
finite element is scalar- or veector-valued; some elements additionally require the parameter edim <: Int if they are structurally different in different space dimensions; arbitrary order elements require a third parameter that determines the order
4545
- each finite elements mainly comes with a set of basis functions in reference coordinates for each applicable AbstractElementGeometry and degrees of freedom maps for each mesh entity
4646
- broken finite elements are possible via the broken switch in the [FESpace](@ref) constructor
4747
- the type steers how the basis functions are transformed from local to global coordinates and how FunctionOperators are evaluated
@@ -54,7 +54,7 @@ AbstractFiniteElement
5454

5555
## List of implemented Finite Elements
5656

57-
The following table lists all curently implemented finite elements and on which geometries they are available (in brackets a dofmap pattern for CellDofs is shown and the number of local degrees of freedom for a vector-valued realisation). Click on the FEType to find out more details.
57+
The following table lists all currently implemented finite elements and on which geometries they are available (in brackets a dofmap pattern for CellDofs is shown and the number of local degrees of freedom for a vector-valued realisation). Click on the FEType to find out more details.
5858

5959
| FEType | Triangle2D | Parallelogram2D | Tetrahedron3D | Parallelepiped3D |
6060
| :----------------: | :----------------: | :----------------: | :----------------: | :----------------: |
@@ -93,7 +93,7 @@ Note: the dofmap pattern describes the connection of the local degrees of freedo
9393

9494
### P0 finite element
9595

96-
Piecewise constant finite element that has one degree of freedom on each cell of the grid. (It is masked as a H1-conforming finite element, because it uses the same operator evaulations.)
96+
Piecewise constant finite element that has one degree of freedom on each cell of the grid. (It is masked as a H1-conforming finite element, because it uses the same operator evaluations.)
9797

9898
The interpolation of a given function into this space preserves the cell integrals.
9999

@@ -205,7 +205,7 @@ H1P3
205205

206206
### Pk finite element (experimental)
207207

208-
The Pk finite element method generically generates polynomials of abitrary order k on simplices (Edge1D, Triangle2D so far).
208+
The Pk finite element method generically generates polynomials of arbitrary order k on simplices (Edge1D, Triangle2D so far).
209209

210210
The interpolation of a given function into this space performs point evaluations at the nodes and preserves cell and face integrals in 2D (moment order depends on the order and the element dimension).
211211

docs/src/interpolations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The qpinfo argument communicates vast information of the current quadrature poin
1717
| qpinfo.region | Integer | region number of item |
1818
| qpinfo.xref | Vector{Real} | reference coordinates within item of qpinfo.x |
1919
| qpinfo.volume | Real | volume of item |
20-
| qpinfo.params | Vector{Any} | parameters that can be transfered via keyword arguments |
20+
| qpinfo.params | Vector{Any} | parameters that can be transferred via keyword arguments |
2121

2222

2323
## Standard Interpolations

docs/src/notebooks_intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
This sections contains [Pluto.jl](https://github.com/fonsp/Pluto.jl) notebooks.
44

5-
Plese note, that in the html version, interactive elements like sliders are disabled.
5+
Please note, that in the html version, interactive elements like sliders are disabled.
66
Navigation via the table of contents does work, though.
77

examples/Example200_LowLevelPoisson.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ function runtests(; order = 2, kwargs...) #hide
203203
## first assembly causes allocations when filling sparse matrix
204204
loop_allocations = assemble!(A.entries, b.entries, FES, f, μ)
205205
@info "allocations in 1st assembly: $loop_allocations"
206-
## second assebly in same matrix should have allocation-free inner loop
206+
## second assembly in same matrix should have allocation-free inner loop
207207
loop_allocations = assemble!(A.entries, b.entries, FES, f, μ)
208208
@info "allocations in 2nd assembly: $loop_allocations"
209209
@test loop_allocations == 0

pluto-examples/LowLevelNavierStokes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ function solve_stokes_lowlevel(FES, μ, f!)
292292
Alin = deepcopy(A) # = keep linear part of system matrix
293293
blin = deepcopy(b) # = keep linear part of right-hand side
294294

295-
println("Pepare boundary conditions...")
295+
println("Prepare boundary conditions...")
296296
@time begin
297297
u_init = FEVector(FES)
298298
interpolate!(u_init[1], u!; time = teval)

src/dofmaps.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ EffAT4AssemblyType(::Type{ON_EDGES}, ::Type{<:ON_EDGES}) = ON_CELLS
189189
"""
190190
$(TYPEDEF)
191191
192-
Abstrat type for all dof types
192+
Abstract type for all dof types
193193
"""
194194
abstract type DofType end
195195

src/fedefs/h1_pk.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function ExtendableGrids.interpolate!(Target, FE::FESpace{Tv, Ti, H1Pk{ncomponen
9999
end
100100
end
101101

102-
## standard interpolation on cells = perserve cell moments up to order-3
102+
## standard interpolation on cells = preserve cell moments up to order-3
103103
function ExtendableGrids.interpolate!(Target, FE::FESpace{Tv, Ti, H1Pk{ncomponents, edim, order}, APT}, ::Type{ON_CELLS}, exact_function!; items = [], kwargs...) where {ncomponents, edim, order, Tv, Ti, APT}
104104
if edim == 2
105105
# delegate cell faces to face interpolation
@@ -116,7 +116,7 @@ function ExtendableGrids.interpolate!(Target, FE::FESpace{Tv, Ti, H1Pk{ncomponen
116116
# subitems = slice(FE.dofgrid[CellEdges], items)
117117
# interpolate!(Target, FE, ON_EDGES, exact_function!; items = subitems, time = time)
118118

119-
# # fixe face means
119+
# # fix face means
120120

121121
# # fix cell bubble value by preserving integral mean
122122
# ensure_cell_moments!(Target, FE, exact_function!; facedofs = 1, edgedofs = 2, items = items, time = time)
@@ -194,7 +194,7 @@ function get_basis(::Type{<:AssemblyType}, FEType::Type{H1Pk{ncomponents, edim,
194194
end
195195
if order > 3 # use recursion to fill the interior dofs (+multiplication with cell bubble)
196196
interior_basis = get_basis(ON_CELLS, H1Pk{1, edim, order - 3}, Triangle2D)
197-
# todo: scaling factors for interior dofs (but may be ommited)
197+
# todo: scaling factors for interior dofs (but may be omitted)
198198
end
199199
function closure(refbasis, xref)
200200
fill!(refbasis, 0)
@@ -217,7 +217,7 @@ function get_basis(::Type{<:AssemblyType}, FEType::Type{H1Pk{ncomponents, edim,
217217
# edge basis functions
218218
if order > 1
219219
for k 1:order-1
220-
# on each face find basis funktion that is 1 at s = k//order
220+
# on each face find basis function that is 1 at s = k//order
221221

222222
# first face (nodes [1,2])
223223
refbasis[3+k, 1] = refbasis[end] * xref[1] / factors_face[k]

src/fedefs/h1v_p1teb.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ abstract type H1P1TEB{edim} <: AbstractH1FiniteElementWithCoefficients where {ed
55
````
66
77
vector-valued (ncomponents = edim) element that uses P1 functions + tangential-weighted edge bubbles
8-
as suggested by [Diening, L., Storn, J. & Tscherpel, T., "Fortin operator for the Taylor–Hood element", Numer. Math. 150, 671–689 (2022)]
8+
as suggested by [Diening, L., Storn, J. & Tscherpel, T., "Fortin operator for the Taylor–Hood element", Num. Math. 150, 671–689 (2022)]
99
1010
(is inf-sup stable for Stokes if paired with continuous P1 pressure space, less degrees of freedom than MINI)
1111

0 commit comments

Comments
 (0)