From 8560968c680465e9acfcab2a328bd575536a2ebc Mon Sep 17 00:00:00 2001 From: Alex Lindsay Date: Thu, 20 Aug 2026 10:38:34 -0700 Subject: [PATCH] Guard use of max_new_nodes_per_elem In the parameter list `max_new_nodes_per_elem` is wrapped by our unique id ifdef guards, so we must do the same for use of the variable in the function body Co-Authored-By: Claude --- src/mesh/unstructured_mesh.C | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesh/unstructured_mesh.C b/src/mesh/unstructured_mesh.C index fa581d1454..5cff72f109 100644 --- a/src/mesh/unstructured_mesh.C +++ b/src/mesh/unstructured_mesh.C @@ -119,8 +119,10 @@ void transfer_elem(Elem & lo_elem, const unsigned int hon_end = hi_elem->n_nodes(); libmesh_assert_less (hon_begin, hon_end); +#ifdef LIBMESH_ENABLE_UNIQUE_ID libmesh_assert_less_equal (hon_end-hon_begin, max_new_nodes_per_elem); +#endif for (unsigned int hon=hon_begin; hon