LCOV - code coverage report
Current view: top level - src/utils - FVUtils.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 8 8 100.0 %
Date: 2025-07-17 01:28:37 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             : #include "MooseVariableFV.h"
      11             : #include "MooseLinearVariableFV.h"
      12             : #include "FVUtils.h"
      13             : #include "SystemBase.h"
      14             : 
      15             : namespace Moose
      16             : {
      17             : namespace FV
      18             : {
      19             : 
      20             : bool
      21    81849637 : elemHasFaceInfo(const Elem & elem, const Elem * const neighbor)
      22             : {
      23             :   // The face info belongs to elem:
      24             :   //  * at all mesh boundaries (i.e. where there is no neighbor)
      25             :   //  * if the element faces a neighbor which is on a lower refinement level
      26             :   //  * if the element is active and it has a lower ID than its neighbor
      27    81849637 :   if (!neighbor)
      28     4874353 :     return true;
      29    76975284 :   else if (elem.level() != neighbor->level())
      30       93520 :     return neighbor->level() < elem.level();
      31    76881764 :   else if (!neighbor->active())
      32       12968 :     return false;
      33             :   else
      34    76868796 :     return elem.id() < neighbor->id();
      35             : }
      36             : }
      37             : }

Generated by: LCOV version 1.14