We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 235b0f9 commit 79af5cbCopy full SHA for 79af5cb
Project.toml
@@ -1,7 +1,7 @@
1
name = "DynamicalBilliards"
2
uuid = "4986ee89-4ee5-5cef-b6b8-e49ba721d7a5"
3
repo = "https://github.com/JuliaDynamics/DynamicalBilliards.jl.git"
4
-version = "3.10.3"
+version = "3.10.2"
5
6
[deps]
7
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
src/billiards/particles.jl
@@ -85,6 +85,9 @@ mutable struct MagneticParticle{T<:AbstractFloat} <: AbstractParticle{T}
85
end
86
87
88
+ismagnetic(x) = false
89
+ismagnetic(x::MagneticParticle) = true
90
+
91
function Base.getproperty(p::MagneticParticle, s::Symbol)
92
if s == :ω
93
return Base.getfield(p, :omega)
0 commit comments