From bdec27bc39a4b464f1f897ebca008cc99eaf6ef8 Mon Sep 17 00:00:00 2001 From: Anchal Gupta Date: Sun, 17 Mar 2024 20:31:02 -0700 Subject: [PATCH] Fixed bug in search_edges --- src/solps_mesh_tools.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/solps_mesh_tools.jl b/src/solps_mesh_tools.jl index 03006f6..e68221f 100644 --- a/src/solps_mesh_tools.jl +++ b/src/solps_mesh_tools.jl @@ -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]