Skip to content

Commit

Permalink
Merge pull request #85 from weymouth/bugfix
Browse files Browse the repository at this point in the history
bug fix
  • Loading branch information
weymouth authored Dec 13, 2023
2 parents 62f20a1 + a3e4878 commit b60bdab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Metrics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ function ∮nds(p::AbstractArray{T,N},df::AbstractArray{T},body::AbstractBody,t=
reshape(sum(df,dims=1:N),N) |> Array
end
@inline function nds(body::AbstractBody,x,t)
d,n,_ = body.measure(x,t)
d,n,_ = measure(body,x,t)
n*WaterLily.kern(clamp(d,-1,1))
end

0 comments on commit b60bdab

Please sign in to comment.