Skip to content

Commit 79af5cb

Browse files
committed
add ismagnetic function
1 parent 235b0f9 commit 79af5cb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DynamicalBilliards"
22
uuid = "4986ee89-4ee5-5cef-b6b8-e49ba721d7a5"
33
repo = "https://github.com/JuliaDynamics/DynamicalBilliards.jl.git"
4-
version = "3.10.3"
4+
version = "3.10.2"
55

66
[deps]
77
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"

src/billiards/particles.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ mutable struct MagneticParticle{T<:AbstractFloat} <: AbstractParticle{T}
8585
end
8686
end
8787

88+
ismagnetic(x) = false
89+
ismagnetic(x::MagneticParticle) = true
90+
8891
function Base.getproperty(p::MagneticParticle, s::Symbol)
8992
if s ==
9093
return Base.getfield(p, :omega)

0 commit comments

Comments
 (0)