LCOV - code coverage report
Current view: top level - include/relationshipmanagers - GhostPrimaryFace.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 39a256 Lines: 1 1 100.0 %
Date: 2026-07-14 14:36:17 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //* This file is part of the MOOSE framework
       2             : //* https://mooseframework.inl.gov
       3             : //*
       4             : //* All rights reserved, see COPYRIGHT for full restrictions
       5             : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
       6             : //*
       7             : //* Licensed under LGPL 2.1, please see LICENSE for details
       8             : //* https://www.gnu.org/licenses/lgpl-2.1.html
       9             : 
      10             : #pragma once
      11             : 
      12             : #include "RelationshipManager.h"
      13             : #include "libmesh/mesh_base.h"
      14             : 
      15             : /**
      16             :  * Ghosts full-dimensional elements with sides on the primary boundary to processors that own
      17             :  * full-dimensional elements with sides on the secondary boundary.
      18             :  */
      19             : class GhostPrimaryFace : public RelationshipManager
      20             : {
      21             : public:
      22             :   GhostPrimaryFace(const InputParameters & params);
      23             : 
      24             :   GhostPrimaryFace(const GhostPrimaryFace & other);
      25             : 
      26             :   static InputParameters validParams();
      27             : 
      28             :   virtual void operator()(const libMesh::MeshBase::const_element_iterator & range_begin,
      29             :                           const libMesh::MeshBase::const_element_iterator & range_end,
      30             :                           libMesh::processor_id_type p,
      31             :                           map_type & coupled_elements) override;
      32             : 
      33             :   virtual std::unique_ptr<libMesh::GhostingFunctor> clone() const override;
      34             : 
      35         133 :   virtual void redistribute() override { this->mesh_reinit(); }
      36             : 
      37             :   std::string getInfo() const override;
      38             : 
      39             :   virtual bool operator>=(const RelationshipManager & other) const override;
      40             : 
      41             : protected:
      42             :   virtual void internalInitWithMesh(const libMesh::MeshBase &) override;
      43             : 
      44             :   /// Return whether the local element range contains a secondary boundary face.
      45             :   bool hasSecondaryBoundaryFace(const libMesh::MeshBase::const_element_iterator & range_begin,
      46             :                                 const libMesh::MeshBase::const_element_iterator & range_end,
      47             :                                 BoundaryID secondary_boundary_id,
      48             :                                 bool generating_mesh) const;
      49             : 
      50             :   /// Primary boundary whose full-dimensional elements may be ghosted.
      51             :   const BoundaryName _primary_boundary_name;
      52             : 
      53             :   /// Secondary boundary whose local presence triggers primary boundary ghosting.
      54             :   const BoundaryName _secondary_boundary_name;
      55             : 
      56             :   /// Whether this relationship manager should add ghosting entries.
      57             :   const bool _enabled;
      58             : 
      59             :   /// null matrix for generating full variable coupling
      60             :   const libMesh::CouplingMatrix * const _null_mat = nullptr;
      61             : };

Generated by: LCOV version 1.14