LCOV - code coverage report
Current view: top level - src/utils - FVUtils.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 419b9d Lines: 8 8 100.0 %
Date: 2025-08-08 20:01:16 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    91064690 : 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    91064690 :   if (!neighbor)
      28     5512976 :     return true;
      29    85551714 :   else if (elem.level() != neighbor->level())
      30      104770 :     return neighbor->level() < elem.level();
      31    85446944 :   else if (!neighbor->active())
      32       14687 :     return false;
      33             :   else
      34    85432257 :     return elem.id() < neighbor->id();
      35             : }
      36             : }
      37             : }

Generated by: LCOV version 1.14