Skip to content

Commit

Permalink
Merge pull request #29653 from jessecarterMOOSE/parsed_generated_node…
Browse files Browse the repository at this point in the history
…set_noncontiguous_fix_29652

Allow use of non-contiguous node numberings to be used with ParsedGeneratedNodeset mesh generator
  • Loading branch information
GiudGiud authored Jan 8, 2025
2 parents bebcead + feaf047 commit e193a3d
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 e193a3d

Please sign in to comment.