LCOV - code coverage report
Current view: top level - src/interfaces - BoundaryRestrictableRequired.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 99787a Lines: 14 15 93.3 %
Date: 2025-10-14 20:01:24 Functions: 3 3 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 "BoundaryRestrictableRequired.h"
      11             : #include "InputParameters.h"
      12             : 
      13             : InputParameters
      14     3015543 : BoundaryRestrictableRequired::validParams()
      15             : {
      16             :   // Create instance of InputParameters
      17     3015543 :   InputParameters params = emptyInputParameters();
      18             : 
      19             :   // Create user-facing 'boundary' input for restricting inheriting object to boundaries
      20    12062172 :   params.addRequiredParam<std::vector<BoundaryName>>(
      21             :       "boundary", "The list of boundary IDs from the mesh where this object applies");
      22             : 
      23             :   // A parameter for disabling error message for objects restrictable by boundary and block,
      24             :   // if the parameter is valid it was already set so don't do anything
      25     6031086 :   if (!params.isParamValid("_dual_restrictable"))
      26     9046629 :     params.addPrivateParam<bool>("_dual_restrictable", false);
      27             : 
      28     3015543 :   return params;
      29           0 : }
      30             : 
      31      102241 : BoundaryRestrictableRequired::BoundaryRestrictableRequired(const MooseObject * moose_object,
      32      102241 :                                                            bool nodal)
      33      102241 :   : BoundaryRestrictable(moose_object, nodal)
      34             : {
      35      102231 : }
      36             : 
      37             : #ifdef MOOSE_KOKKOS_ENABLED
      38       70083 : BoundaryRestrictableRequired::BoundaryRestrictableRequired(
      39       70083 :     const BoundaryRestrictableRequired & object, const Moose::Kokkos::FunctorCopy & key)
      40       70083 :   : BoundaryRestrictable(object, key)
      41             : {
      42       70083 : }
      43             : #endif

Generated by: LCOV version 1.14