Skip to content

Commit 1cb8d73

Browse files
committed
Added error when stitching fails
In no matching nodes are found, libmesh throws an error now refs idaholab/moose#27758
1 parent 60bc66e commit 1cb8d73

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mesh/unstructured_mesh.C

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2164,6 +2164,7 @@ UnstructuredMesh::stitching_helper (const MeshBase * other_mesh,
21642164
node_to_elems_map.clear();
21652165
}
21662166
}
2167+
libmesh_error_msg_if(node_to_node_map.empty(), "Error: Stitch failed, no matching nodes found. Ensure boundaries are properly aligned before trying again.");
21672168
}
21682169
else
21692170
{

0 commit comments

Comments
 (0)