Skip to content

Commit

Permalink
fix distance_matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLampert committed Oct 28, 2024
1 parent 14177e7 commit 7630cfa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nodes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ Compute the distance matrix between two [`NodeSet`](@ref)s, which is a matrix ``
`nodeset1` and ``\xi_j`` are the nodes on `nodeset2`.
"""
function distance_matrix(nodeset1::NodeSet, nodeset2::NodeSet)
n1, n2 = length(nodeset1), length(nodeset2)
D = zeros(eltype(nodeset1), n1, n2)
for i in eachindex(nodeset1)
for j in eachindex(nodeset2)
Expand Down

0 comments on commit 7630cfa

Please sign in to comment.