Skip to content

Commit 78b6767

Browse files
authored
Add type parameter to CurrentLoop
1 parent 383d0dd commit 78b6767

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LoopFieldCalc.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ const μ₀ = 4π * 1e-7
66

77
include("geometry.jl")
88

9-
Base.@kwdef struct CurrentLoop
9+
Base.@kwdef struct CurrentLoop{T}
1010
radius::Float64
1111
current::Float64
12-
center::CartesianPoint
12+
center::CartesianPoint{T}
1313
end
1414

1515
CurrentLoop(;radius, current, x, y, z) =

0 commit comments

Comments
 (0)