Exemplo n.º 1
0
void ElementPointNeighbors::attachRelationshipManagersInternal(
    Moose::RelationshipManagerType /*rm_type*/)
{
  if (_mesh.isDistributedMesh())
  {
    _point_coupling = libmesh_make_unique<GhostPointNeighbors>(_mesh);

    attachGeometricFunctorHelper(*_point_coupling);
  }
}
Exemplo n.º 2
0
void
ElementSideNeighborLayers::attachRelationshipManagersInternal(
    Moose::RelationshipManagerType rm_type)
{
  if ((_app.isSplitMesh() || _mesh.isDistributedMesh()) && _element_side_neighbor_layers > 1)
  {
    _default_coupling = libmesh_make_unique<DefaultCoupling>();
    _default_coupling->set_n_levels(_element_side_neighbor_layers);

    if (rm_type == Moose::RelationshipManagerType::GEOMETRIC)
      attachGeometricFunctorHelper(*_default_coupling);
    else
      attachAlgebraicFunctorHelper(*_default_coupling);
  }
}