Skip to content

Commit

Permalink
Skip find neighbors
Browse files Browse the repository at this point in the history
  • Loading branch information
lindsayad committed Mar 24, 2020
1 parent 69e81e2 commit fc9c23e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions framework/src/meshgenerators/BreakMeshByBlockGenerator.C
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,13 @@ BreakMeshByBlockGenerator::generate()

// We need to prepare the mesh now to at a minimum update our parallel counts. We used our own
// numbering procedure so we don't need to renumber. Similarly we also handled our own
// partitioning so we can skip partitioning.
// partitioning so we can skip partitioning. Finally we absolutely have to skip_find_neighbors
// because once we've broken by block libmesh will not recognize former neighbors at the subdomain
// interface as neighbors. If we called find_neighbors, elements would lose those neighbor links
// and then in a distributed mode they very well might get deleted (the former neighbors that is)
mesh->allow_renumbering(false);
mesh->skip_partitioning(true);
mesh->prepare_for_use();
mesh->prepare_for_use(false, /*skip_find_neighbors=*/true);

return dynamic_pointer_cast<MeshBase>(mesh);
}
Expand Down

0 comments on commit fc9c23e

Please sign in to comment.