Skip to content

Commit

Permalink
use node iterator instead of node ids so mesh with non-contiguous nod…
Browse files Browse the repository at this point in the history
…e numberings can be used, closes #29652
  • Loading branch information
jessecarterMOOSE committed Jan 6, 2025
1 parent 1e17680 commit feaf047
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions framework/src/meshgenerators/ParsedGenerateNodeset.C
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,8 @@ ParsedGenerateNodeset::generate()
mooseAssert(nodeset_ids.size() == 1, "Length of nodeset_ids should be one");

// Loop over nodes
for (const auto node_id : make_range(mesh->n_nodes()))
for (const auto curr_node : as_range(mesh->active_nodes_begin(), mesh->active_nodes_end()))
{
// Get a pointer to the node
const auto curr_node = mesh->query_node_ptr(node_id);

// Get all nodesets the node is currently a part of
const auto & node_nodesets_iters = nodeset_map.equal_range(curr_node);

Expand Down

0 comments on commit feaf047

Please sign in to comment.