Skip to content

Commit a3def84

Browse files
committed
Don't re-enable split mesh partitioning too early
This fixes libMesh/libmesh#3759 regressions in the GridPartitioner mesh splitting tests for me. When we recognize that an unpartitioned mesh is unprepared (which the libMesh PR now does), and that prompts MOOSE to call prepare_for_use(), we'd better still have partitioning disabled unless we want to see some partitioning.
1 parent 441108e commit a3def84

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

framework/src/actions/SplitMeshAction.C

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ void
3131
SplitMeshAction::act()
3232
{
3333
auto mesh = _app.actionWarehouse().mesh();
34+
35+
mesh->getMesh().skip_partitioning(false);
36+
3437
const std::string split_file_arg = _app.parameters().isParamSetByUser("split_file")
3538
? _app.parameters().get<std::string>("split_file")
3639
: "";

framework/src/mesh/MooseMesh.C

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2960,10 +2960,6 @@ MooseMesh::init()
29602960
getMesh().skip_partitioning(true);
29612961
buildMesh();
29622962

2963-
// Re-enable partitioning so the splitter can partition!
2964-
if (_app.isSplitMesh())
2965-
getMesh().skip_partitioning(false);
2966-
29672963
if (getParam<bool>("build_all_side_lowerd_mesh"))
29682964
buildLowerDMesh();
29692965
}

0 commit comments

Comments
 (0)