diff --git a/framework/src/meshgenerators/MeshDiagnosticsGenerator.C b/framework/src/meshgenerators/MeshDiagnosticsGenerator.C index ebb917ed6055..faa98b5ee44e 100644 --- a/framework/src/meshgenerators/MeshDiagnosticsGenerator.C +++ b/framework/src/meshgenerators/MeshDiagnosticsGenerator.C @@ -361,7 +361,7 @@ MeshDiagnosticsGenerator::checkWatertightNodesets(const std::unique_ptr checked_nodes; + std::set checked_nodes_id; for (const auto elem : mesh->active_element_ptr_range()) { @@ -376,14 +376,14 @@ MeshDiagnosticsGenerator::checkWatertightNodesets(const std::unique_ptrn_nodes(); j++) { const auto node = node_list[j]; - if (checked_nodes.count(*node)) + if (checked_nodes_id.count(node->id())) continue; // if node is not part of nodeset map add it to list of bad nodes if (nodeset_map.count(node) == 0) { // This node does not have a nodeset!!! num_nodes_without_nodeset++; - checked_nodes.insert(*node); + checked_nodes_id.insert(node->id()); std::string message; if (num_nodes_without_nodeset < _num_outputs) {