Skip to content

Commit 34b76eb

Browse files
committed
move type definition
1 parent 96bacda commit 34b76eb

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

src/fmm/kernel.jl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,6 @@ end
140140

141141
#------- constant source, normal doublet, source + normal doublet -------#
142142

143-
struct Source{M} <: AbstractRotatedKernel{M} end
144-
const UniformSource = Source{1}
145-
146-
struct NormalDoublet{M} <: AbstractRotatedKernel{M} end
147-
const ConstantNormalDoublet = NormalDoublet{1}
148-
149-
struct SourceNormalDoublet{M} <: AbstractRotatedKernel{M} end
150-
const UniformSourceNormalDoublet = SourceNormalDoublet{2}
151-
152143
@inline function compute_source_dipole(::DerivativesSwitch{PS,VS,GS}, target_Rx, target_Ry, target_Rz, vx_i, vy_i, vx_ip1, vy_ip1, eip1, hip1, rip1, ei, hi, ri, ds, mi, dx, dy, strength::AbstractVector{TF}, ::UniformSource, R_dot_s, reg_term) where {PS,VS,GS,TF}
153144

154145
#--- compute values ---#
@@ -581,10 +572,6 @@ end
581572

582573
#------- vortex ring panel -------#
583574

584-
struct Vortex{M} <: AbstractUnrotatedKernel{M} end
585-
const VortexRing = Vortex{1}
586-
587-
588575
function _induced(target::AbstractVector{TFT}, panel::Panel{TFP,<:Any,NS}, kernel::VortexRing, core_radius, derivatives_switch::DerivativesSwitch{PS,VS,GS}) where {TFT,TFP,NS,PS,VS,GS}
589576
TF = promote_type(TFT,TFP)
590577
corner_vectors = SVector{NS,SVector{3,TF}}(corner - target for corner in panel.vertices)

src/fmm/types.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,14 @@ abstract type AbstractPanels{TK<:AbstractKernel, TF, NK, NS} end
88

99
@inline kernel_multiplicity(::Type{<:AbstractKernel{M}}) where M = M
1010

11+
struct Source{M} <: AbstractRotatedKernel{M} end
12+
const UniformSource = Source{1}
13+
14+
struct NormalDoublet{M} <: AbstractRotatedKernel{M} end
15+
const ConstantNormalDoublet = NormalDoublet{1}
16+
17+
struct SourceNormalDoublet{M} <: AbstractRotatedKernel{M} end
18+
const UniformSourceNormalDoublet = SourceNormalDoublet{2}
19+
20+
struct Vortex{M} <: AbstractUnrotatedKernel{M} end
21+
const VortexRing = Vortex{1}

0 commit comments

Comments
 (0)