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 9bb32fa commit 48cdaf9Copy full SHA for 48cdaf9
src/domains.jl
@@ -57,5 +57,5 @@ Return the nearest location of `coords` in the `domain`.
57
"""
58
function nearestlocation(domain::AbstractDomain{T,N},
59
coords::AbstractVector{T}) where {T<:Real,N}
60
- argmin(norm(coords .- coordinates(domain, loc)) for loc in 1:npoints(domain))
+ argmin([norm(coords .- coordinates(domain, loc)) for loc in 1:npoints(domain)])
61
end
0 commit comments