Skip to content

Commit 58d384b

Browse files
committed
made changes for PR
-removed unnecessary initialization of side_list -removed call to nodeset_map and instead used boundary_info.n_boundary_ids(node)
1 parent 050af5f commit 58d384b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

framework/src/meshgenerators/MeshDiagnosticsGenerator.C

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,6 @@ MeshDiagnosticsGenerator::checkWatertightNodesets(const std::unique_ptr<MeshBase
358358
if (mesh->mesh_dimension() < 2)
359359
mooseError("The nodeset check only works for 2D and 3D meshes");
360360
auto & boundary_info = mesh->get_boundary_info();
361-
boundary_info.build_side_list();
362-
const auto nodeset_map = boundary_info.get_nodeset_map();
363361
unsigned int num_nodes_without_nodeset = 0;
364362
std::set<dof_id_type> checked_nodes_id;
365363

@@ -378,8 +376,8 @@ MeshDiagnosticsGenerator::checkWatertightNodesets(const std::unique_ptr<MeshBase
378376
const auto node = node_list[j];
379377
if (checked_nodes_id.count(node->id()))
380378
continue;
381-
// if node is not part of nodeset map add it to list of bad nodes
382-
if (nodeset_map.count(node) == 0)
379+
// if node has no nodeset, add it to list of bad nodes
380+
if (boundary_info.n_boundary_ids(node) == 0)
383381
{
384382
// This node does not have a nodeset!!!
385383
num_nodes_without_nodeset++;

0 commit comments

Comments
 (0)