From f25180ed89636e3ef6f132d45ef643583a6b0b4f Mon Sep 17 00:00:00 2001 From: Daniel Yankura Date: Thu, 6 Feb 2025 15:28:34 -0700 Subject: [PATCH 1/2] Added error when stitching fails In no matching nodes are found, libmesh throws an error now refs idaholab/moose#27758 --- src/mesh/unstructured_mesh.C | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesh/unstructured_mesh.C b/src/mesh/unstructured_mesh.C index 434a9563fa5..7ac0f358a92 100644 --- a/src/mesh/unstructured_mesh.C +++ b/src/mesh/unstructured_mesh.C @@ -2164,6 +2164,7 @@ UnstructuredMesh::stitching_helper (const MeshBase * other_mesh, node_to_elems_map.clear(); } } + libmesh_error_msg_if(node_to_node_map.empty(), "Error: Stitch failed, no matching nodes found. Ensure boundaries are properly aligned before trying again."); } else { From c4f02bff481940e71643628d0fda7d38fc0c39f4 Mon Sep 17 00:00:00 2001 From: Daniel Yankura Date: Fri, 14 Feb 2025 15:07:55 -0700 Subject: [PATCH 2/2] Changed libMesh error to warning --- src/mesh/unstructured_mesh.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesh/unstructured_mesh.C b/src/mesh/unstructured_mesh.C index 7ac0f358a92..981b78b19df 100644 --- a/src/mesh/unstructured_mesh.C +++ b/src/mesh/unstructured_mesh.C @@ -2164,7 +2164,8 @@ UnstructuredMesh::stitching_helper (const MeshBase * other_mesh, node_to_elems_map.clear(); } } - libmesh_error_msg_if(node_to_node_map.empty(), "Error: Stitch failed, no matching nodes found. Ensure boundaries are properly aligned before trying again."); + if (node_to_node_map.empty()) + libMesh::out << "Warning: Stitch failed, no matching nodes found. Ensure boundaries are properly aligned before trying again." << std::endl; } else {