Skip to content

Commit

Permalink
Base node proc_id on owning element proc_id
Browse files Browse the repository at this point in the history
This makes my test work in replicated mode in dbg mode in parallel
but not in distributed mode. I think I'm going to have to reivive
PR idaholab#14456 for that
  • Loading branch information
lindsayad authored and WilkAndy committed Apr 19, 2020
1 parent 82ad0ec commit b9884ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion framework/src/meshgenerators/BreakMeshByBlockGenerator.C
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ BreakMeshByBlockGenerator::generate()
{
// add new node
new_node = Node::build(*current_node, mesh->n_nodes()).release();
new_node->processor_id() = current_node->processor_id();

// We're duplicating nodes so that each subdomain elem has its own copy, so it seems
// natural to assign this new node the same proc id as corresponding subdomain elem
new_node->processor_id() = current_elem->processor_id();
mesh->add_node(new_node);

// Add boundary info to the new node
Expand Down

0 comments on commit b9884ea

Please sign in to comment.