Skip to content

Commit

Permalink
Fixed bug in search_edges
Browse files Browse the repository at this point in the history
  • Loading branch information
anchal-physics committed Mar 18, 2024
1 parent 6ceaa8e commit bdec27b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solps_mesh_tools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ search if an edge with nodes as edge_nodes already exists
"""
function search_edges(edges, edge_nodes)
for ii eachindex(edges)
if edge_nodes[2] == edges[ii].nodes[1] && edge_nodes[1] == edges[ii].nodes[2]
if edge_nodes[1] == edges[ii].nodes[1] && edge_nodes[2] == edges[ii].nodes[2]
return ii
elseif edge_nodes[2] == edges[ii].nodes[1] &&
edge_nodes[1] == edges[ii].nodes[2]
Expand Down

0 comments on commit bdec27b

Please sign in to comment.