Skip to content

Commit 48cdaf9

Browse files
committed
Workaround Julia issue JuliaLang/julia#28349
1 parent 9bb32fa commit 48cdaf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/domains.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ Return the nearest location of `coords` in the `domain`.
5757
"""
5858
function nearestlocation(domain::AbstractDomain{T,N},
5959
coords::AbstractVector{T}) where {T<:Real,N}
60-
argmin(norm(coords .- coordinates(domain, loc)) for loc in 1:npoints(domain))
60+
argmin([norm(coords .- coordinates(domain, loc)) for loc in 1:npoints(domain)])
6161
end

0 commit comments

Comments
 (0)