LCOV - code coverage report
Current view: top level - src/bcs - ADDirichletBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #32971 (54bef8) with base c6cf66 Lines: 11 12 91.7 %
Date: 2026-05-29 20:35:17 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 "ADDirichletBC.h"
      11             : 
      12             : registerMooseObject("MooseApp", ADDirichletBC);
      13             : 
      14             : InputParameters
      15        5485 : ADDirichletBC::validParams()
      16             : {
      17        5485 :   InputParameters params = ADDirichletBCBaseTempl<Real>::validParams();
      18       16455 :   params.addRequiredParam<Real>("value", "Value of the BC");
      19       16455 :   params.declareControllable("value");
      20        5485 :   params.addClassDescription("Imposes the essential boundary condition $u=g$, where $g$ "
      21             :                              "is a constant, controllable value.");
      22        5485 :   return params;
      23           0 : }
      24             : 
      25        1212 : ADDirichletBC::ADDirichletBC(const InputParameters & parameters)
      26        2424 :   : ADDirichletBCBaseTempl<Real>(parameters), _value(getParam<Real>("value"))
      27             : {
      28        1212 : }
      29             : 
      30             : ADReal
      31      119621 : ADDirichletBC::computeQpValue()
      32             : {
      33      119621 :   return _value;
      34             : }

Generated by: LCOV version 1.14