Skip to content

Commit f747da1

Browse files
committed
Use GhostPointNeighbors instead as the mesh ghosting functor
refs #31025
1 parent f6d06c5 commit f747da1

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

framework/src/utils/PeriodicBCHelper.C

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include "MooseMesh.h"
1717

1818
#include "libmesh/periodic_boundary.h"
19-
#include "libmesh/default_coupling.h"
19+
#include "libmesh/ghost_point_neighbors.h"
2020

2121
namespace Moose
2222
{
@@ -78,9 +78,7 @@ PeriodicBCHelper::setupPeriodicBoundaries(FEProblemBase & problem)
7878
const auto add_ghosting = [this](auto & problem)
7979
{
8080
auto & mesh = problem.mesh().getMesh();
81-
auto functor = std::make_shared<libMesh::DefaultCoupling>();
82-
functor->set_mesh(&mesh);
83-
functor->set_n_levels(1);
81+
auto functor = std::make_shared<libMesh::GhostPointNeighbors>(mesh);
8482
functor->set_periodic_boundaries(&getPeriodicBoundaries());
8583
mesh.add_ghosting_functor(functor);
8684
};

0 commit comments

Comments
 (0)