LCOV - code coverage report
Current view: top level - src/bcs - DirichletBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 11 12 91.7 %
Date: 2025-07-17 01:28:37 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 "DirichletBC.h"
      11             : 
      12             : registerMooseObject("MooseApp", DirichletBC);
      13             : 
      14             : InputParameters
      15      159076 : DirichletBC::validParams()
      16             : {
      17      159076 :   InputParameters params = DirichletBCBase::validParams();
      18      159076 :   params.addRequiredParam<Real>("value", "Value of the BC");
      19      159076 :   params.declareControllable("value");
      20      159076 :   params.addClassDescription("Imposes the essential boundary condition $u=g$, where $g$ "
      21             :                              "is a constant, controllable value.");
      22      159076 :   return params;
      23           0 : }
      24             : 
      25       57216 : DirichletBC::DirichletBC(const InputParameters & parameters)
      26       57216 :   : DirichletBCBase(parameters), _value(getParam<Real>("value"))
      27             : {
      28       57208 : }
      29             : 
      30             : Real
      31    37258406 : DirichletBC::computeQpValue()
      32             : {
      33    37258406 :   return _value;
      34             : }

Generated by: LCOV version 1.14