Skip to content

Commit ccbf002

Browse files
authored
Merge pull request #1 from Referee1405/diff-targets-sources
Fixed several typos
2 parents c74d0dd + 57baee4 commit ccbf002

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Kernels/helmholtz.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ where $c_j$ are the `charges` and `v_j` are the `dipvecs`.
1515
- `k`: the wavenumber.
1616
- `targets::Matrix{T}`: `3 x n` matrix of target points.
1717
- `sources::Matrix{T}`: `3 x m` matrix of source points.
18-
- `charges::Vector{Complex{T}}`: vector of `n` charges.
18+
- `charges::Vector{Complex{T}}`: vector of `m` charges.
1919
- `dipvecs::Matrix{Complex{T}}`: `3 x m` matrix of dipole vectors.
2020
- `grad::Bool`: if `true`, the gradient is computed instead
2121
- `kwargs...`: additional keyword arguments passed to [`assemble_ifgf`](@ref).
@@ -96,7 +96,7 @@ function helmholtz3d(L::IFGFOp; charges = nothing, dipvecs = nothing, grad = fal
9696
error("either charges or dipvecs should be provided")
9797
m, n = size(L)
9898
T = isnothing(charges) ? eltype(dipvecs) : eltype(charges)
99-
out = grad ? zeros(T, 3, m) : zeros(T, n)
99+
out = grad ? zeros(T, 3, m) : zeros(T, m)
100100
return helmholtz3d!(out, L; charges, dipvecs, grad)
101101
end
102102

src/Kernels/laplace.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ where $c_j$ are the `charges` and `v_j` are the `dipvecs`.
1515
1616
- `targets::Matrix{T}`: `3 x n` matrix of target points.
1717
- `sources::Matrix{T}`: `3 x m` matrix of source points.
18-
- `charges::Vector{T}`: vector of `n` charges.
18+
- `charges::Vector{T}`: vector of `m` charges.
1919
- `dipvecs::Matrix{T}`: `3 x m` matrix of dipole vectors.
2020
- `grad::Bool`: if `true`, the gradient is computed instead
2121
- `kwargs...`: additional keyword arguments passed to [`assemble_ifgf`](@ref)
@@ -106,7 +106,7 @@ function laplace3d(L::IFGFOp; charges = nothing, dipvecs = nothing, grad = false
106106
error("either charges or dipvecs should be provided")
107107
m, n = size(L)
108108
T = isnothing(charges) ? eltype(dipvecs) : eltype(charges)
109-
out = grad ? zeros(T, 3, m) : zeros(T, n)
109+
out = grad ? zeros(T, 3, m) : zeros(T, m)
110110
return laplace3d!(out, L; charges, dipvecs, grad)
111111
end
112112

src/Kernels/stokes.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ stresslet orientations.
1818
1919
- `targets::Matrix{T}`: `3 x n` matrix of target points.
2020
- `sources::Matrix{T}`: `3 x m` matrix of source points.
21-
- `stoklet::Matrix{T}`: `3 × n` matrix of stokeslets
21+
- `stoklet::Matrix{T}`: `3 × m` matrix of stokeslets
2222
- `strslet::Matrix{T}`: `6 x m` matrix of stresslet densities (indices `1:3`)
2323
and orientations (indices `4:6`)
2424
- `grad::Bool`: if `true`, the gradient is computed instead
@@ -98,7 +98,7 @@ function stokes3d(L::IFGFOp; stoklet = nothing, strslet = nothing, grad = false)
9898
error("either stoklet or strslet should be provided")
9999
m, n = size(L)
100100
T = isnothing(stoklet) ? eltype(strslet) : eltype(stoklet)
101-
out = grad ? zeros(T, 3, 3, m) : zeros(T, 3, n)
101+
out = grad ? zeros(T, 3, 3, m) : zeros(T, 3, m)
102102
return stokes3d!(out, L; stoklet, strslet, grad)
103103
end
104104

0 commit comments

Comments
 (0)